public class NormDiscrete extends Expression
Constructor and Description |
---|
NormDiscrete(Element normDisc,
FieldMetaInfo.Optype opType,
ArrayList<Attribute> fieldDefs)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getResult(double[] incoming)
Get the result of evaluating the expression.
|
String |
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
|
String |
toString(String pad) |
getExpression, getExpression, getFieldDef, getFieldDefIndex, getOptype, getResultContinuous, toString
public NormDiscrete(Element normDisc, FieldMetaInfo.Optype opType, ArrayList<Attribute> fieldDefs) throws 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)Exception
- if there is a problem parsing this Apply Expressionpublic void setFieldDefs(ArrayList<Attribute> fieldDefs) throws Exception
setFieldDefs
in class Expression
fieldDefs
- the field definitions to useException
- if there is a problem setting the field definitionspublic double getResult(double[] incoming) throws Exception
getResult
in class Expression
incoming
- the incoming parameter valuesException
- if there is a problem computing the resultpublic String getResultCategorical(double[] incoming) throws Exception
getResultCategorical
in class Expression
incoming
- the incoming parameter valuesException
- alwayspublic String toString(String pad)
toString
in class Expression
Copyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.