.Spot.Base.Math.sign_gtlt

Information

Calculates the "sign" function

  sig = +1 if x[k] >  +b else 0,
  sig = -1 if x[k] <  -b else 0,
component-wise.

Interface

function sign_gtlt
  extends Icons.Function;
  input Real[:] x "argument";
  input Real b(min = 0) "threshold value";
  output Real[size(x, 1)] y "characteristic function of abs(x) > b";
end sign_gtlt;

Generated at 2024-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos