public class ClassificationFeatureMetadata
extends java.lang.Object
Constructor and Description |
---|
ClassificationFeatureMetadata(java.lang.String attribute,
DataType<?> type,
ARXFeatureScaling scaling,
boolean isTypePreservingMicroaggregation)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of the feature
|
double |
getNumericValue(java.lang.String value)
Returns a scaled double representation, NaN if the value cannot be parsed or scaled
|
boolean |
isNumeric()
Returns whether this is a numeric attribute
|
boolean |
isNumericMicroaggregation()
Returns whether this attribute is numeric and microaggregated in a type preserving manner
|
public ClassificationFeatureMetadata(java.lang.String attribute, DataType<?> type, ARXFeatureScaling scaling, boolean isTypePreservingMicroaggregation)
attribute
- type
- scaling
- isTypePreservingMicroaggregation
- public java.lang.String getName()
public boolean isNumericMicroaggregation()
public boolean isNumeric()
public double getNumericValue(java.lang.String value)
value
-