File statistics_weighted_immutable.hpp¶
-
class IImmutableWeightedStatistics¶
- #include <statistics_weighted_immutable.hpp>
Defines an interface for all classes that provide access to weighted statistics about the labels of the training examples, which serve as the basis for learning a new rule or refining an existing one.
Subclassed by IWeightedStatistics
Public Functions
-
inline virtual ~IImmutableWeightedStatistics()¶
-
virtual uint32 getNumStatistics() const = 0¶
Returns the number of available statistics.
- Returns:
The number of statistics
-
virtual uint32 getNumLabels() const = 0¶
Returns the number of available labels.
- Returns:
The number of labels
-
virtual std::unique_ptr<IWeightedStatisticsSubset> createSubset(const CompleteIndexVector &labelIndices) const = 0¶
Creates and returns a new object of type
IWeightedStatisticsSubset
that includes only those labels, whose indices are provided by a specificCompleteIndexVector
.- Parameters:
labelIndices – A reference to an object of type
CompleteIndexVector
that provides access to the indices of the labels that should be included in the subset- Returns:
An unique pointer to an object of type
IWeightedStatisticsSubset
that has been created
-
virtual std::unique_ptr<IWeightedStatisticsSubset> createSubset(const PartialIndexVector &labelIndices) const = 0¶
Creates and returns a new object of type
IWeightedStatisticsSubset
that includes only those labels, whose indices are provided by a specificPartialIndexVector
.- Parameters:
labelIndices – A reference to an object of type
PartialIndexVector
that provides access to the indices of the labels that should be included in the subset- Returns:
An unique pointer to an object of type
IWeightedStatisticsSubset
that has been created
-
inline virtual ~IImmutableWeightedStatistics()¶