public class NormContinuous extends Expression
Constructor and Description |
---|
NormContinuous(Element normCont,
FieldMetaInfo.Optype opType,
ArrayList<Attribute> fieldDefs) |
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 NormContinuous must
be continuous.
|
double |
getResultInverse(double[] incoming)
Compute the inverse of the normalization (i.e.
|
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 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 double getResultInverse(double[] incoming)
incoming
- the incoming parameter valuespublic 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.