程序包 weka.core.pmml
类 BuiltInMath
java.lang.Object
weka.core.pmml.Function
weka.core.pmml.BuiltInMath
- 所有已实现的接口:
Serializable
Built-in function for min, max, sum, avg, log10,
ln, sqrt, abs, exp, pow, threshold, floor, ceil and round.
- 版本:
- $Revision 1.0 $
- 作者:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- 另请参阅:
-
构造器概要
构造器构造器说明BuiltInMath
(weka.core.pmml.BuiltInMath.MathFunc func) Construct a new built-in pmml Math function. -
方法概要
修饰符和类型方法说明Get the structure of the result produced by this function.String[]
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.toString()
从类继承的方法 weka.core.pmml.Function
getFunction, getFunction, getName, toString
-
构造器详细资料
-
BuiltInMath
public BuiltInMath(weka.core.pmml.BuiltInMath.MathFunc func) Construct a new built-in pmml Math function.- 参数:
func
- the math function to use
-
-
方法详细资料
-
setParameterDefs
Set the structure of the parameters that are expected as input by this function. This must be called before getOutputDef() is called.- 指定者:
setParameterDefs
在类中Function
- 参数:
paramDefs
- the structure of the input parameters- 抛出:
Exception
- if the number or types of parameters are not acceptable by this function
-
getOutputDef
Get the structure of the result produced by this function. Subclasses must implement.- 指定者:
getOutputDef
在类中Function
- 返回:
- the structure of the result produced by this function.
-
getParameterNames
Returns an array of the names of the parameters expected as input by this function. May return null if the function can accept an unbounded number of arguments.- 指定者:
getParameterNames
在类中Function
- 返回:
- an array of the parameter names (or null if the function can accept any number of arguments).
-
getResult
Get the result of applying this function.- 指定者:
getResult
在类中Function
- 参数:
incoming
- the arguments to this function (supplied in order to match that of the parameter definitions- 返回:
- the result of applying this function. When the optype is categorical or ordinal, an index into the values of the output definition is returned.
- 抛出:
Exception
- if there is a problem computing the result of this function
-
toString
-