public class DerivedFieldMetaInfo extends FieldMetaInfo implements java.io.Serializable
FieldMetaInfo.Interval, FieldMetaInfo.Optype, FieldMetaInfo.Value| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
m_displayName
display name
|
protected Expression |
m_expression
the single expression that defines the value of this field
|
protected java.util.ArrayList<FieldMetaInfo.Value> |
m_values
the list of values (if the field is ordinal) - may be of size zero if none
are specified.
|
m_fieldName, m_optype| Constructor and Description |
|---|
DerivedFieldMetaInfo(org.w3c.dom.Element derivedField,
java.util.ArrayList<Attribute> fieldDefs,
weka.core.pmml.TransformationDictionary transDict) |
| Modifier and Type | Method and Description |
|---|---|
double |
getDerivedValue(double[] incoming)
Get the derived field value for the given incoming vector of values.
|
Attribute |
getFieldAsAttribute()
Get this derived field as an Attribute.
|
void |
setFieldDefs(java.util.ArrayList<Attribute> fieldDefs)
Upadate the field definitions for this derived field
|
void |
setFieldDefs(Instances fields)
Upadate the field definitions for this derived field
|
java.lang.String |
toString() |
getFieldName, getOptypeprotected java.lang.String m_displayName
protected java.util.ArrayList<FieldMetaInfo.Value> m_values
protected Expression m_expression
public DerivedFieldMetaInfo(org.w3c.dom.Element derivedField,
java.util.ArrayList<Attribute> fieldDefs,
weka.core.pmml.TransformationDictionary transDict)
throws java.lang.Exception
java.lang.Exceptionpublic void setFieldDefs(java.util.ArrayList<Attribute> fieldDefs) throws java.lang.Exception
fieldDefs - the fields as an ArrayList of Attributesjava.lang.Exception - if there is a problem setting the field definitionspublic void setFieldDefs(Instances fields) throws java.lang.Exception
fields - the fields as an Instances objectjava.lang.Exception - if there is a problem setting the field definitionspublic Attribute getFieldAsAttribute()
getFieldAsAttribute in class FieldMetaInfopublic double getDerivedValue(double[] incoming)
throws java.lang.Exception
incoming - the incoming parameter valuesjava.lang.Exception - if there is a problem computing the valuepublic java.lang.String toString()
toString in class java.lang.Object