Package org.jpmml.evaluator.functions
Class MeanFunction
- java.lang.Object
-
- org.jpmml.evaluator.functions.AbstractFunction
-
- org.jpmml.evaluator.functions.UnaryFunction
-
- org.jpmml.evaluator.functions.MeanFunction
-
- All Implemented Interfaces:
Function
public class MeanFunction extends UnaryFunction
A Java UDF for calculating the mean of a collection of values.
Pseudo-declaration of function:<DefineFunction name="..." dataType="double"> <ParameterField name="values" dataType="collection of numbers"/> </DefineFunction>- See Also:
Mean
-
-
Constructor Summary
Constructors Constructor Description MeanFunction()MeanFunction(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Doubleevaluate(Collection<?> values)FieldValueevaluate(FieldValue value)-
Methods inherited from class org.jpmml.evaluator.functions.UnaryFunction
evaluate
-
Methods inherited from class org.jpmml.evaluator.functions.AbstractFunction
getAliases, getName
-
-
-
-
Constructor Detail
-
MeanFunction
public MeanFunction()
-
MeanFunction
public MeanFunction(String name)
-
-
Method Detail
-
evaluate
public Double evaluate(Collection<?> values)
-
evaluate
public FieldValue evaluate(FieldValue value)
- Specified by:
evaluatein classUnaryFunction
-
-