|
||||||||||
| 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(org.w3c.dom.Element normDisc,
FieldMetaInfo.Optype opType,
java.util.ArrayList<Attribute> fieldDefs)
Constructor. |
|
| Method Summary | |
|---|---|
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)
|
| 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(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 Expression| Method Detail |
|---|
public void setFieldDefs(java.util.ArrayList<Attribute> fieldDefs)
throws java.lang.Exception
setFieldDefs in class ExpressionfieldDefs - the field definitions to use
java.lang.Exception - if there is a problem setting the field definitions
public double getResult(double[] incoming)
throws java.lang.Exception
getResult in class Expressionincoming - the incoming parameter values
java.lang.Exception - if there is a problem computing the result
public java.lang.String getResultCategorical(double[] incoming)
throws java.lang.Exception
getResultCategorical in class Expressionincoming - the incoming parameter values
java.lang.Exception - alwayspublic java.lang.String toString(java.lang.String pad)
toString in class Expression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||