|
||||||||||
| 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.BuiltInMath
public class BuiltInMath
Built-in function for min, max, sum, avg, log10, ln, sqrt, abs, exp, pow, threshold, floor, ceil and round.
| Constructor Summary | |
|---|---|
BuiltInMath(weka.core.pmml.BuiltInMath.MathFunc func)
Construct a new built-in pmml Math function. |
|
| Method Summary | |
|---|---|
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 |
setParameterDefs(java.util.ArrayList<Attribute> paramDefs)
Set the structure of the parameters that are expected as input by this function. |
java.lang.String |
toString()
|
| Methods inherited from class weka.core.pmml.Function |
|---|
getFunction, getFunction, getName, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BuiltInMath(weka.core.pmml.BuiltInMath.MathFunc func)
func - the math function to use| Method Detail |
|---|
public void setParameterDefs(java.util.ArrayList<Attribute> paramDefs)
throws java.lang.Exception
setParameterDefs in class FunctionparamDefs - the structure of the input parameters
java.lang.Exception - if the number or types of parameters are not acceptable by
this functionpublic Attribute getOutputDef()
getOutputDef in class Functionpublic java.lang.String[] getParameterNames()
getParameterNames in class Function
public 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 definitions
java.lang.Exception - if there is a problem computing the result of this functionpublic java.lang.String toString()
toString in class Function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||