程序包 weka.core.pmml

类 NormContinuous

java.lang.Object
weka.core.pmml.Expression
weka.core.pmml.NormContinuous
所有已实现的接口:
Serializable

public class NormContinuous extends Expression
Class encapsulating a NormContinuous Expression.
版本:
$Revision 1.0 $
作者:
Mark Hall (mhall{[at]}pentaho{[dot]}com)
另请参阅:
  • 构造器详细资料

  • 方法详细资料

    • setFieldDefs

      public void setFieldDefs(ArrayList<Attribute> fieldDefs) throws Exception
      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

      public double getResult(double[] incoming) throws Exception
      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 normalizing the input field
      抛出:
      Exception - if there is a problem computing the result
    • getResultInverse

      public double getResultInverse(double[] incoming)
      Compute the inverse of the normalization (i.e. map back to a unormalized value).
      参数:
      incoming - the incoming parameter values
      返回:
      the unormalized value
    • getResultCategorical

      public String getResultCategorical(double[] incoming) throws Exception
      Always throws an Exception since the result of NormContinuous must be continuous.
      指定者:
      getResultCategorical 在类中 Expression
      参数:
      incoming - the incoming parameter values
      返回:
      the result of evaluating the expression
      抛出:
      Exception - always
    • toString

      public String toString(String pad)
      覆盖:
      toString 在类中 Expression