public class MiningFieldMetaInfo extends FieldMetaInfo implements java.io.Serializable
FieldMetaInfo.Interval, FieldMetaInfo.Optype, FieldMetaInfo.Value
Constructor and Description |
---|
MiningFieldMetaInfo(org.w3c.dom.Element field)
Constructs a new MiningFieldMetaInfo object.
|
Modifier and Type | Method and Description |
---|---|
double |
applyMissingValueTreatment(double value)
Apply the missing value treatment method for this field.
|
double |
applyOutlierTreatment(double value)
Apply the outlier treatment method for this field.
|
Attribute |
getFieldAsAttribute()
Return this mining field as an Attribute.
|
weka.core.pmml.MiningFieldMetaInfo.Missing |
getMissingValueTreatmentMethod()
Get the missing value treatment method for this field.
|
java.lang.String |
getName()
Get the name of this field.
|
weka.core.pmml.MiningFieldMetaInfo.Outlier |
getOutlierTreatmentMethod()
Get the outlier treatment method used for this field.
|
weka.core.pmml.MiningFieldMetaInfo.Usage |
getUsageType()
Get the usage type of this field.
|
void |
setIndex(int index)
Set the index of this field in the mining schema Instances
|
java.lang.String |
toString()
Return a textual representation of this MiningField.
|
getFieldName, getOptype
public MiningFieldMetaInfo(org.w3c.dom.Element field) throws java.lang.Exception
field
- the Element that contains the field informationjava.lang.Exception
- if there is a problem during constructionpublic weka.core.pmml.MiningFieldMetaInfo.Usage getUsageType()
public java.lang.String toString()
toString
in class java.lang.Object
public void setIndex(int index)
index
- the index of the attribute in the mining schema Instances
that this field representspublic java.lang.String getName()
public weka.core.pmml.MiningFieldMetaInfo.Outlier getOutlierTreatmentMethod()
public weka.core.pmml.MiningFieldMetaInfo.Missing getMissingValueTreatmentMethod()
public double applyMissingValueTreatment(double value) throws java.lang.Exception
value
- the incoming value to apply the treatment tojava.lang.Exception
- if there is a problempublic double applyOutlierTreatment(double value) throws java.lang.Exception
value
- the incoming value to apply the treatment tojava.lang.Exception
- if there is a problempublic Attribute getFieldAsAttribute()
getFieldAsAttribute
in class FieldMetaInfo