public class DerivedFieldMetaInfo extends FieldMetaInfo implements Serializable
FieldMetaInfo.Interval, FieldMetaInfo.Optype, FieldMetaInfo.Value
Modifier and Type | Field and Description |
---|---|
protected String |
m_displayName
display name
|
protected Expression |
m_expression
the single expression that defines the value of this field
|
protected 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(Element derivedField,
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(ArrayList<Attribute> fieldDefs)
Upadate the field definitions for this derived field
|
String |
toString() |
getFieldName, getOptype
protected String m_displayName
protected ArrayList<FieldMetaInfo.Value> m_values
protected Expression m_expression
public void setFieldDefs(ArrayList<Attribute> fieldDefs) throws Exception
fieldDefs
- Exception
public Attribute getFieldAsAttribute()
getFieldAsAttribute
in class FieldMetaInfo
public double getDerivedValue(double[] incoming) throws Exception
incoming
- the incoming parameter valuesException
- if there is a problem computing the valueCopyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.