public class DefineFunction extends Function
| Constructor and Description |
|---|
DefineFunction(org.w3c.dom.Element container,
weka.core.pmml.TransformationDictionary transDict) |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
getOutputDef()
Get the structure of the result produced by this function.
|
java.lang.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 |
pushParameterDefs() |
void |
setParameterDefs(java.util.ArrayList<Attribute> paramDefs)
Set the structure of the parameters that are expected as input by
this function.
|
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String pad) |
getFunction, getFunction, getNamepublic DefineFunction(org.w3c.dom.Element container,
weka.core.pmml.TransformationDictionary transDict)
throws java.lang.Exception
java.lang.Exceptionpublic void pushParameterDefs()
throws java.lang.Exception
java.lang.Exceptionpublic Attribute getOutputDef()
getOutputDef in class Functionpublic java.lang.String[] getParameterNames()
getParameterNames in class Functionpublic double getResult(double[] incoming)
throws java.lang.Exception
getResult in class Functionincoming - the arguments to this function (supplied in order to match that
of the parameter definitionsjava.lang.Exception - if there is a problem computing the result of this functionpublic void setParameterDefs(java.util.ArrayList<Attribute> paramDefs) throws java.lang.Exception
setParameterDefs in class FunctionparamDefs - the structure of the input parametersjava.lang.Exception - if the number or types of parameters are not acceptable by
this function