6 #include "GeoGenericFunctions/Theta.h" 7 #include "GeoGenericFunctions/FixedConstant.h" 10 FUNCTION_OBJECT_IMP(Theta)
18 Theta::Theta(
const Theta & right) : AbsFunction(right)
22 double Theta::operator() (
double x)
const {
23 return (x>=0) ? 1.0:0.0;
28 Derivative Theta::partial(
unsigned int index)
const {
29 if (index!=0)
throw std::runtime_error(
"Theta::Partial: index out of range");
30 const AbsFunction & fPrime = FixedConstant(0.0);
31 return Derivative(& fPrime);