public class NormDiscrete extends Expression
Constructor and Description |
---|
NormDiscrete(org.w3c.dom.Element normDisc,
FieldMetaInfo.Optype opType,
java.util.ArrayList<Attribute> fieldDefs)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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 NormDiscrete must
be continuous.
|
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, toString
public NormDiscrete(org.w3c.dom.Element normDisc, FieldMetaInfo.Optype opType, java.util.ArrayList<Attribute> fieldDefs) throws java.lang.Exception
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)java.lang.Exception
- if there is a problem parsing this Apply Expressionpublic void setFieldDefs(java.util.ArrayList<Attribute> fieldDefs) throws java.lang.Exception
setFieldDefs
in class Expression
fieldDefs
- the field definitions to usejava.lang.Exception
- if there is a problem setting the field definitionspublic double getResult(double[] incoming) throws java.lang.Exception
getResult
in class Expression
incoming
- the incoming parameter valuesjava.lang.Exception
- if there is a problem computing the resultpublic java.lang.String getResultCategorical(double[] incoming) throws java.lang.Exception
getResultCategorical
in class Expression
incoming
- the incoming parameter valuesjava.lang.Exception
- alwayspublic java.lang.String toString(java.lang.String pad)
toString
in class Expression