public class DefineFunction extends Function
| Modifier and Type | Class and Description |
|---|---|
protected class |
DefineFunction.ParameterField
Inner class for handling Parameters
|
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
m_expression
The Expression for this function to use
|
protected ArrayList<DefineFunction.ParameterField> |
m_parameters
The list of parameters expected by this function.
|
m_functionName, m_parameterDefs| Constructor and Description |
|---|
DefineFunction(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.
|
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() |
String |
toString(String pad) |
getFunction, getFunction, getNameprotected ArrayList<DefineFunction.ParameterField> m_parameters
protected Expression m_expression
public Attribute getOutputDef()
getOutputDef in class Functionpublic String[] getParameterNames()
getParameterNames in class Functionpublic double getResult(double[] incoming)
throws Exception
getResult in class Functionincoming - 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 functionpublic void setParameterDefs(ArrayList<Attribute> paramDefs) throws Exception
setParameterDefs in class FunctionparamDefs - the structure of the input parametersException - if the number or types of parameters are not acceptable by
this functionCopyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.