step

image The step function is the simplest of filters. When the given value exceeds the threshold, we switch over to the higher value (true).

Downloadstep(a,t)   Returns 0 wthen t is less than a, 1 otherwise.
/*
**  Usage:
**      step(a,t)
**
**  Arguments:
**      a     threshold value, real
**      t     value, real
**
**  Returns:
**      0 when (t < a),
**      1 otherwise
**
**  GMLscripts.com
*/

{
    return (argument1 >= argument0);
}

Click if you've used this script[Please Login]
Projects: 5

 Contributor: xot


comments powered by Disqus