#ifndef FUNC_STEP_H_
#define FUNC_STEP_H_

#include <functions/ScalarFunc.h>

/**
 *@short Step function
 * <pre>
 * y <- step(x)
 * y = 1 if x >= 0
 *     0 if x <  0
 * </pre>
 */
class Step:public ScalarFunc
{
public:
  Step ();
  double eval (std::vector <SArray const *> const &args) const;
  bool isDiscreteValued(std::vector<SArray const *> const &args) const;
};

#endif /* FUNC_STEP_H_ */


syntax highlighted by Code2HTML, v. 0.9.1