Reference Manual: DSL discretizer
From DSL
This class offers discretization methods that can be applied to DSL_datasets.
Fields
- enum MethodType {Hierarch,UniBinWith,UniBinCounts}, indicates the method used for discretization.
Methods
- DSL_discretizer(const std::vector<float> &data)
Constructor.
- DSL_discretizer(const std::vector<DSL_dataElement> &data, bool useFloat = true);
Constructor.
- bool Discretize(int numLevels, MethodType discMethod = Hierarch);
Perform the discretization.
- const std::vector<double> &GetBinEdges() const;
Retrieve the bin edges.
- const std::vector<double> &GetBinMeans() const;
Retrieve the bin means.
- const std::vector<int> &GetDiscretized();
Retrieve the counts for each bin.
