Class ThresDescr

Class Documentation

class ThresDescr

Class to manage discretization thresholds for multiple variables.

This class uses OneVarThresDescr to store and manage thresholds for each variable.

Public Functions

inline OneVarThresDescr *GetDescr(int var)

Retrieves the threshold descriptor for a given variable.

Parameters:

var – Index of the variable.

Returns:

Pointer to the threshold descriptor of the variable.

inline void Insert(int var, float thres, int indPat)

Inserts a threshold and pattern index for a given variable.

Parameters:
  • var – Index of the variable.

  • thres – Threshold value.

  • indPat – Pattern index.

void ResetAllCountPatDiscr()

Resets the discretization pattern count for all variables.

void Del()

Deletes all thresholds and patterns for all variables.

explicit ThresDescr(int nbVar)

Constructor for the ThresDescr class.

Parameters:

nbVar – Number of variables.