public class DataFeaturesLimits
extends java.lang.Object
Constructor and Description |
---|
DataFeaturesLimits(double[][] featureLimits) |
DataFeaturesLimits(java.util.List<AbstractFeatureLimits> featureLimits) |
Modifier and Type | Method and Description |
---|---|
DataFeaturesLimits |
clone() |
boolean |
equals(DataFeaturesLimits other) |
int |
featuresCount()
Get count of features.
|
AbstractFeatureLimits |
getFeatureLimits(int featureIndex) |
double[][] |
toDoubles()
Serialize limits to 2D double array depending on the features types, so it can be passed to MR task
|
DataFeaturesLimits |
updateMask(int selectedFeature,
boolean[] newMask)
Creates new instance of limits with updated mask - replaces old mask with new more precise one.
|
DataFeaturesLimits |
updateMaskExcluded(int selectedFeature,
boolean[] maskToExclude)
Creates new instance of limits with updated mask - excludes from the current mask categories defined by the new one.
|
DataFeaturesLimits |
updateMax(int selectedFeature,
double newMax)
Creates new instance of limits with updated max.
|
DataFeaturesLimits |
updateMin(int selectedFeature,
double newMin)
Creates new instance of limits with updated min.
|
public DataFeaturesLimits(java.util.List<AbstractFeatureLimits> featureLimits)
public DataFeaturesLimits(double[][] featureLimits)
public DataFeaturesLimits clone()
clone
in class java.lang.Object
public DataFeaturesLimits updateMin(int selectedFeature, double newMin)
selectedFeature
- feature index to update minnewMin
- new min value for featurepublic DataFeaturesLimits updateMax(int selectedFeature, double newMax)
selectedFeature
- feature index to update maxnewMax
- new max value for featurepublic DataFeaturesLimits updateMask(int selectedFeature, boolean[] newMask)
selectedFeature
- feature index to update masknewMask
- new mask for the featurepublic DataFeaturesLimits updateMaskExcluded(int selectedFeature, boolean[] maskToExclude)
selectedFeature
- feature index to update maskmaskToExclude
- new mask for the featurepublic AbstractFeatureLimits getFeatureLimits(int featureIndex)
public double[][] toDoubles()
public int featuresCount()
public boolean equals(DataFeaturesLimits other)