step
The step function is the simplest of filters.
When the given value exceeds the threshold, we switch over to the higher value (true).
/*
** Usage:
** step(a,t)
**
** Arguments:
** a threshold value, real
** t value, real
**
** Returns:
** 0 when (t < a),
** 1 otherwise
**
** GMLscripts.com
*/
{
return (argument1 >= argument0);
}
** Usage:
** step(a,t)
**
** Arguments:
** a threshold value, real
** t value, real
**
** Returns:
** 0 when (t < a),
** 1 otherwise
**
** GMLscripts.com
*/
{
return (argument1 >= argument0);
}
[Please Login]
Projects: 5
Contributor: xot
comments powered by Disqus

Related: