|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.core.pmml.Expression
weka.core.pmml.NormDiscrete
public class NormDiscrete
Class encapsulating a NormDiscrete Expression. Creates an indicator for a particular discrete value.
| Constructor Summary | |
|---|---|
NormDiscrete(Element normDisc,
FieldMetaInfo.Optype opType,
ArrayList<Attribute> fieldDefs)
Constructor. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class weka.core.pmml.Expression |
|---|
getExpression, getExpression, getFieldDef, getFieldDefIndex, getOptype, getResultContinuous, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 Expression| Method Detail |
|---|
public void setFieldDefs(ArrayList<Attribute> fieldDefs)
throws Exception
setFieldDefs in class ExpressionfieldDefs - the field definitions to use
Exception - if there is a problem setting the field definitions
public double getResult(double[] incoming)
throws Exception
getResult in class Expressionincoming - the incoming parameter values
Exception - if there is a problem computing the result
public String getResultCategorical(double[] incoming)
throws Exception
getResultCategorical in class Expressionincoming - the incoming parameter values
Exception - alwayspublic String toString(String pad)
toString in class Expression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||