#ifndef FUNC_SUM_H_
#define FUNC_SUM_H_
#include <functions/ScalarFunc.h>
/**
* @short Sum of an array
* Sum calculates the sum of the elements of an array
* @see Mean
* <pre>
* y <- sum(x[])
* </pre>
*/
class Sum : public ScalarFunc
{
public:
Sum ();
double eval (std::vector <SArray const *> const &args) const;
bool checkParameterDim (std::vector <SArray const *> const &args) const;
bool isDiscreteValued(std::vector<SArray const *> const &args) const;
};
#endif /* FUNC_SUM_H_ */
syntax highlighted by Code2HTML, v. 0.9.1