Class OneVarThresDescr
Defined in File oneVarTD.h
Nested Relationships
Nested Types
Class Documentation
-
class OneVarThresDescr
Class to describe thresholds for a single variable.
This class maintains a list of thresholds and associated pattern indices. Thresholds are specific values used to discretize a continuous variable, and patterns represent the instances of data that fall within these thresholds.
Public Functions
-
inline int GetNbThres() const
Gets the number of thresholds.
- Returns:
The number of thresholds.
-
inline void GoToBeg()
Resets the pointer to the beginning of the list.
-
inline void GoToNext()
Advances the pointer to the next element in the list.
-
inline float GetThres() const
Gets the current threshold value.
- Returns:
The current threshold value.
-
inline StringInt *GetPtrPat()
Gets the pointer to the list of patterns.
- Returns:
The pointer to the list of patterns.
-
inline int GetCountPatDiscr() const
Gets the count of patterns for discretization.
- Returns:
The count of patterns for discretization.
-
inline void IncCountPatDiscr() const
Increments the count of patterns for discretization.
-
inline void SetCountPat(int val) const
Sets the count of patterns for discretization.
- Parameters:
val – The value to set.
-
void ResetCountPatDiscr()
Resets the count of patterns for discretization for all elements.
-
void Insert(float thres, int indPat)
Inserts a new threshold and pattern index.
- Parameters:
thres – The threshold value.
indPat – The index of the pattern.
-
void Del()
Deletes all elements in the list.
-
OneVarThresDescr() = default
Constructor for OneVarThresDescr.
-
inline int GetNbThres() const