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(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Doubleevaluate(java.util.Collection<?> values)FieldValueevaluate(FieldValue value)-
Methods inherited from class org.jpmml.evaluator.functions.UnaryFunction
evaluate
-
Methods inherited from class org.jpmml.evaluator.functions.AbstractFunction
checkFixedArityArguments, checkVariableArityArguments, checkVariableArityArguments, getAliases, getArgument, getName, getOptionalArgument, getRequiredArgument
-
-
-
-
Method Detail
-
evaluate
public java.lang.Double evaluate(java.util.Collection<?> values)
-
evaluate
public FieldValue evaluate(FieldValue value)
- Specified by:
evaluatein classUnaryFunction
-
-