Catalano.MachineLearning.FeatureEncoder
Class AggregateFeatures
- java.lang.Object
-
- Catalano.MachineLearning.FeatureEncoder.AggregateFeatures
-
public class AggregateFeatures extends java.lang.ObjectAggregate Features. Aggregate all the features into a unique array.
-
-
Constructor Summary
Constructors Constructor and Description AggregateFeatures()Initializes a new instance of the AggregateFeatures class.AggregateFeatures(java.util.List<double[]> features)Initializes a new instance of the AggregateFeatures class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddFeature(double feature)Add a new feature.voidaddFeature(double[] features)Add a new features.voidaddFeature(float feature)Add a new feature.voidaddFeature(int feature)Add a new feature.voidclear()Clear all the features.double[]getFeatures()Get all features into a unique array.
-
-
-
Constructor Detail
-
AggregateFeatures
public AggregateFeatures()
Initializes a new instance of the AggregateFeatures class.
-
AggregateFeatures
public AggregateFeatures(java.util.List<double[]> features)
Initializes a new instance of the AggregateFeatures class.- Parameters:
features- Features.
-
-
Method Detail
-
addFeature
public void addFeature(int feature)
Add a new feature.- Parameters:
feature- Feature.
-
addFeature
public void addFeature(float feature)
Add a new feature.- Parameters:
feature- Feature.
-
addFeature
public void addFeature(double feature)
Add a new feature.- Parameters:
feature- Feature.
-
addFeature
public void addFeature(double[] features)
Add a new features.- Parameters:
features- Features.
-
getFeatures
public double[] getFeatures()
Get all features into a unique array.- Returns:
- Array of features.
-
clear
public void clear()
Clear all the features.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG