ECOCPAK v0.9
Functions
Fn_process_labels

Functions

template<typename eT1 , typename eT2 >
Col< u32 > ecocpak::process_labels (const Mat< eT1 > &labels, Col< eT2 > &n_samples_each_class, u32 &n_classes)
template<typename eT1 >
Col< u32 > ecocpak::process_labels (const Mat< eT1 > &labels, u32 &n_classes)
template<typename eT1 >
Col< u32 > ecocpak::process_labels (const Mat< eT1 > &labels)

Function Documentation

template<typename eT1 , typename eT2 >
Col<u32> ecocpak::process_labels ( const Mat< eT1 > &  labels,
Col< eT2 > &  n_samples_each_class,
u32 &  n_classes 
)
  • Function process_labels() produces new class labels that start from one, it counts the number of classes and the number of elements in each class.
  • Overloaded function.
  • Input Arguments:
    • labels : Vector of unprocessed labels.
  • Output Arguments:
    • n_samples_each_class : A vector for storing the number of elements -- samples in each class.
    • n_classes : Number of classes.
  • Return Argument:
    • A vector of unsigned integers containing new class labels starting from one.
template<typename eT1 >
Col<u32> ecocpak::process_labels ( const Mat< eT1 > &  labels)
  • Overloaded function.
  • Input Arguments:
    • labels: Vector of unprocessed labels.
  • Output Arguments:
    • Void.
  • Return Argument:
    • A vector of unsigned integers containing new class labels starting from one.
template<typename eT1 >
Col<u32> ecocpak::process_labels ( const Mat< eT1 > &  labels,
u32 &  n_classes 
)
  • Function process_labels() produces new class labels that start from one and it counts the number of classes.
  • Overloaded function.
  • Input Arguments:
    • labels : Vector of unprocessed labels.
  • Output Arguments:
    • n_classes : Number of classes.
  • Return Argument:
    • A vector of unsigned integers containing new class labels starting from one.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerator Defines