Function calcHypLocus(const std::string&, DataSetFid&)

Function Documentation

std::vector<std::vector<double>> calcHypLocus(const std::string &rulesFile, DataSetFid &dataset)

Calculates the hyperlocus matrix containing all possible hyperplanes in the feature space that discriminate between different classes of samples, based on the rules training file.

This function reads a rules file to extract thresholds for each attribute from the antecedents of the rules. These thresholds are then used to build the hyperlocus matrix, which contains the positions of the hyperplanes for each attribute in the dataset.

Parameters:
  • rulesFile – Path to the file containing the rules.

  • dataset – Reference to the dataset object.

Returns:

Matrix representing the hyperlocus.