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 quality of predictions for 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 getNumOutputs() const = 0

Returns the number of available outputs.

Returns:

The number of outputs

virtual std::unique_ptr<IWeightedStatisticsSubset> createSubset(const CompleteIndexVector &outputIndices) const = 0

Creates and returns a new object of type IWeightedStatisticsSubset that includes only those outputs, whose indices are provided by a specific CompleteIndexVector.

Parameters:

outputIndices – A reference to an object of type CompleteIndexVector that provides access to the indices of the outputs 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 &outputIndices) const = 0

Creates and returns a new object of type IWeightedStatisticsSubset that includes only those outputs, whose indices are provided by a specific PartialIndexVector.

Parameters:

outputIndices – A reference to an object of type PartialIndexVector that provides access to the indices of the outputs that should be included in the subset

Returns:

An unique pointer to an object of type IWeightedStatisticsSubset that has been created