public class NormContinuous extends Expression
| Modifier and Type | Field and Description |
|---|---|
protected int |
m_fieldIndex
The index of the field
|
protected java.lang.String |
m_fieldName
The name of the field to use
|
protected double[] |
m_linearNormNorm
norm values for the LinearNorm entries
|
protected double[] |
m_linearNormOrig
original values for the LinearNorm entries
|
protected boolean |
m_mapMissingDefined
True if a replacement for missing values has been specified
|
protected double |
m_mapMissingTo
The value of the missing value replacement (if defined)
|
protected weka.core.pmml.MiningFieldMetaInfo.Outlier |
m_outlierTreatmentMethod
Outlier treatment method (default = asIs)
|
m_fieldDefs, m_opType| Constructor and Description |
|---|
NormContinuous(org.w3c.dom.Element normCont,
FieldMetaInfo.Optype opType,
java.util.ArrayList<Attribute> fieldDefs) |
| Modifier and Type | Method and Description |
|---|---|
protected Attribute |
getOutputDef()
Return the structure of the result of applying this Expression
as an Attribute.
|
double |
getResult(double[] incoming)
Get the result of evaluating the expression.
|
java.lang.String |
getResultCategorical(double[] incoming)
Always throws an Exception since the result of NormContinuous must
be continuous.
|
double |
getResultInverse(double[] incoming)
Compute the inverse of the normalization (i.e. map back to a unormalized value).
|
void |
setFieldDefs(java.util.ArrayList<Attribute> fieldDefs)
Set the field definitions for this Expression to use
|
java.lang.String |
toString(java.lang.String pad) |
getExpression, getExpression, getFieldDef, getFieldDefIndex, getOptype, getResultContinuous, toStringprotected java.lang.String m_fieldName
protected int m_fieldIndex
protected boolean m_mapMissingDefined
protected double m_mapMissingTo
protected weka.core.pmml.MiningFieldMetaInfo.Outlier m_outlierTreatmentMethod
protected double[] m_linearNormOrig
protected double[] m_linearNormNorm
public NormContinuous(org.w3c.dom.Element normCont,
FieldMetaInfo.Optype opType,
java.util.ArrayList<Attribute> fieldDefs)
throws java.lang.Exception
java.lang.Exceptionpublic void setFieldDefs(java.util.ArrayList<Attribute> fieldDefs) throws java.lang.Exception
setFieldDefs in class ExpressionfieldDefs - the field definitions to usejava.lang.Exception - if there is a problem setting the field definitionsprotected Attribute getOutputDef()
getOutputDef in class Expressionpublic double getResult(double[] incoming)
throws java.lang.Exception
getResult in class Expressionincoming - the incoming parameter valuesjava.lang.Exception - if there is a problem computing the resultpublic double getResultInverse(double[] incoming)
incoming - the incoming parameter valuespublic java.lang.String getResultCategorical(double[] incoming)
throws java.lang.Exception
getResultCategorical in class Expressionincoming - the incoming parameter valuesjava.lang.Exception - alwayspublic java.lang.String toString(java.lang.String pad)
toString in class Expression