public class DerivedFieldMetaInfo extends FieldMetaInfo implements Serializable
FieldMetaInfo.Interval, FieldMetaInfo.Optype, FieldMetaInfo.Value| 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
|
void |
setFieldDefs(Instances fields)
Upadate the field definitions for this derived field
|
String |
toString() |
getFieldName, getOptypepublic void setFieldDefs(ArrayList<Attribute> fieldDefs) throws Exception
fieldDefs - the fields as an ArrayList of AttributesException - if there is a problem setting the field definitionspublic void setFieldDefs(Instances fields) throws Exception
fields - the fields as an Instances objectException - if there is a problem setting the field definitionspublic Attribute getFieldAsAttribute()
getFieldAsAttribute in class FieldMetaInfopublic double getDerivedValue(double[] incoming)
throws Exception
incoming - the incoming parameter valuesException - if there is a problem computing the valueCopyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.