#ifndef FUNC_MEAN_H_
#define FUNC_MEAN_H_

#include <functions/ScalarFunc.h>

/**
 * @short Mean function
 * Mean calculates the mean of the elements of an array
 * @see SD
 * <pre>
 * y <- mean(x[])
 * </pre>
 */
class Mean : public ScalarFunc
{
public:
  Mean ();
  double eval (std::vector <SArray const *> const &args) const;
  bool checkParameterDim (std::vector < SArray const *>const &args) const;
};

#endif /* FUNC_MEAN_H_ */


syntax highlighted by Code2HTML, v. 0.9.1