|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.core.pmml.Function
weka.core.pmml.DefineFunction
public class DefineFunction
Class encapsulating DefineFunction (used in TransformationDictionary).
| Constructor Summary | |
|---|---|
DefineFunction(Element container,
weka.core.pmml.TransformationDictionary transDict)
|
|
| Method Summary | |
|---|---|
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 |
pushParameterDefs()
|
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)
|
| Methods inherited from class weka.core.pmml.Function |
|---|
getFunction, getFunction, getName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefineFunction(Element container,
weka.core.pmml.TransformationDictionary transDict)
throws Exception
Exception| Method Detail |
|---|
public void pushParameterDefs()
throws Exception
Exceptionpublic Attribute getOutputDef()
getOutputDef in class Functionpublic String[] getParameterNames()
getParameterNames in class Function
public double getResult(double[] incoming)
throws Exception
getResult in class Functionincoming - the arguments to this function (supplied in order to match that
of the parameter definitions
Exception - if there is a problem computing the result of this function
public void setParameterDefs(ArrayList<Attribute> paramDefs)
throws Exception
setParameterDefs in class FunctionparamDefs - the structure of the input parameters
Exception - if the number or types of parameters are not acceptable by
this functionpublic String toString()
toString in class Functionpublic String toString(String pad)
toString in class Function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||