public abstract class Function extends Object implements Serializable
| Constructor and Description |
|---|
Function() |
| Modifier and Type | Method and Description |
|---|---|
static Function |
getFunction(String name)
Get a built-in PMML Function.
|
static Function |
getFunction(String name,
weka.core.pmml.TransformationDictionary transDict)
Get either a function.
|
String |
getName() |
abstract Attribute |
getOutputDef()
Get the structure of the result produced by this function.
|
abstract String[] |
getParameterNames()
Returns an array of the names of the parameters expected
as input by this function.
|
abstract double |
getResult(double[] incoming)
Get the result of applying this function.
|
abstract 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) |
public String getName()
public abstract String[] getParameterNames()
public abstract void setParameterDefs(ArrayList<Attribute> paramDefs) throws Exception
paramDefs - the structure of the input parametersException - if the number or types of parameters are not acceptable by
this functionpublic abstract Attribute getOutputDef()
public abstract double getResult(double[] incoming)
throws Exception
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 functionpublic static Function getFunction(String name)
name - the name of the function to get.public static Function getFunction(String name, weka.core.pmml.TransformationDictionary transDict) throws Exception
name - the name of the function to get.transDict - the TransformationDictionary (may be null if there is
no dictionary).Exception - if the named function is not known/supported.Copyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.