|
||||||||||
| 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.FieldRef
public class FieldRef
Class encapsulating a FieldRef Expression. Is simply a pass-through to an existing field.
| Constructor Summary | |
|---|---|
FieldRef(Element fieldRef,
FieldMetaInfo.Optype opType,
ArrayList<Attribute> fieldDefs)
|
|
| Method Summary | |
|---|---|
Attribute |
getOutputDef()
Return the structure of the result of applying this Expression as an Attribute. |
double |
getResult(double[] incoming)
Get the result of evaluating the expression. |
String |
getResultCategorical(double[] incoming)
Gets the result of evaluating the expression when the optype is categorical or ordinal as the actual String value. |
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 FieldRef(Element fieldRef,
FieldMetaInfo.Optype opType,
ArrayList<Attribute> fieldDefs)
throws Exception
Exception| Method Detail |
|---|
public void setFieldDefs(ArrayList<Attribute> fieldDefs)
throws Exception
Expression
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
Expression
getResult in class Expressionincoming - the incoming parameter values
Exception - if there is a problem computing the result
public String getResultCategorical(double[] incoming)
throws Exception
Expression
getResultCategorical in class Expressionincoming - the incoming parameter values
Exception - if the optype is continuouspublic Attribute getOutputDef()
public String toString(String pad)
toString in class Expression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||