#ifndef FUNC_SUM_H_ #define FUNC_SUM_H_ #include /** * @short Sum of an array * Sum calculates the sum of the elements of an array * @see Mean *
 * y <- sum(x[])
 * 
*/ class Sum : public ScalarFunc { public: Sum (); double eval (std::vector const &args) const; bool checkParameterDim (std::vector const &args) const; bool isDiscreteValued(std::vector const &args) const; }; #endif /* FUNC_SUM_H_ */