程序包 weka.core.pmml
类 NormDiscrete
java.lang.Object
weka.core.pmml.Expression
weka.core.pmml.NormDiscrete
- 所有已实现的接口:
Serializable
Class encapsulating a NormDiscrete Expression. Creates an
indicator for a particular discrete value.
- 版本:
- $Revision 1.0 $
- 作者:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- 另请参阅:
-
构造器概要
构造器构造器说明NormDiscrete
(Element normDisc, FieldMetaInfo.Optype opType, ArrayList<Attribute> fieldDefs) Constructor. -
方法概要
修饰符和类型方法说明double
getResult
(double[] incoming) Get the result of evaluating the expression.getResultCategorical
(double[] incoming) Always throws an Exception since the result of NormDiscrete must be continuous.void
setFieldDefs
(ArrayList<Attribute> fieldDefs) Set the field definitions for this Expression to use从类继承的方法 weka.core.pmml.Expression
getExpression, getExpression, getFieldDef, getFieldDefIndex, getOptype, getResultContinuous, toString
-
构造器详细资料
-
NormDiscrete
public NormDiscrete(Element normDisc, FieldMetaInfo.Optype opType, ArrayList<Attribute> fieldDefs) throws Exception Constructor. Reads the field name and field value for this NormDiscrete Expression.- 参数:
normDisc
- the Element encapsulating this NormDiscreteopType
- the optype for this expression (taken from either the enclosing DefineFunction or DerivedField)fieldDefs
- an ArrayList of Attributes for the fields that this Expression might need to access enclosing DefineFunction or DerivedField)- 抛出:
Exception
- if there is a problem parsing this Apply Expression
-
-
方法详细资料
-
setFieldDefs
Set the field definitions for this Expression to use- 覆盖:
setFieldDefs
在类中Expression
- 参数:
fieldDefs
- the field definitions to use- 抛出:
Exception
- if there is a problem setting the field definitions
-
getResult
Get the result of evaluating the expression. In the case of a continuous optype, a real number is returned; in the case of a categorical/ordinal optype, the index of the nominal value is returned as a double.- 指定者:
getResult
在类中Expression
- 参数:
incoming
- the incoming parameter values- 返回:
- the result of evaluating the expression
- 抛出:
Exception
- if there is a problem computing the result
-
getResultCategorical
Always throws an Exception since the result of NormDiscrete must be continuous.- 指定者:
getResultCategorical
在类中Expression
- 参数:
incoming
- the incoming parameter values- 返回:
- the result of evaluating the expression
- 抛出:
Exception
- always
-
toString
- 覆盖:
toString
在类中Expression
-