public class BuiltInMath extends Function
Constructor and Description |
---|
BuiltInMath(weka.core.pmml.BuiltInMath.MathFunc func)
Construct a new built-in pmml Math function.
|
Modifier and Type | Method and Description |
---|---|
Attribute |
getOutputDef()
Get the structure of the result produced by this function.
|
String[] |
getParameterNames()
Returns an array of the names of the parameters expected
as input by this function.
|
double |
getResult(double[] incoming)
Get the result of applying this function.
|
void |
setParameterDefs(ArrayList<Attribute> paramDefs)
Set the structure of the parameters that are expected as input by
this function.
|
String |
toString() |
getFunction, getFunction, getName, toString
public BuiltInMath(weka.core.pmml.BuiltInMath.MathFunc func)
func
- the math function to usepublic void setParameterDefs(ArrayList<Attribute> paramDefs) throws Exception
setParameterDefs
in class Function
paramDefs
- the structure of the input parametersException
- if the number or types of parameters are not acceptable by
this functionpublic Attribute getOutputDef()
getOutputDef
in class Function
public String[] getParameterNames()
getParameterNames
in class Function
public double getResult(double[] incoming) throws Exception
getResult
in class Function
incoming
- the arguments to this function (supplied in order to match that
of the parameter definitionsException
- if there is a problem computing the result of this functionCopyright © 2020 University of Waikato, Hamilton, NZ. All rights reserved.