.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-04-25T18:15:59Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos