Function AreSameClass(std::shared_ptr<StringInt>, std::vector<int>)

Function Documentation

int AreSameClass(std::shared_ptr<StringInt> listPat, std::vector<int> classPatNet)

Checks if all patterns in the list belong to the same class.

Parameters:
  • listPat – Shared pointer to the list of patterns.

  • classPatNet – Vector of class labels for the patterns.

Returns:

1 if all patterns belong to the same class, 0 otherwise.