SAGA API  v9.5
CSG_Classifier_Supervised Class Reference

#include <mat_tools.h>

Public Member Functions

 CSG_Classifier_Supervised (void)
 
virtual ~CSG_Classifier_Supervised (void)
 
void Create (int nFeatures)
 
void Destroy (void)
 
bool Load (const CSG_String &File)
 
bool Save (const CSG_String &File, const SG_Char *Feature_Info=NULL)
 
bool Train_Clr_Samples (void)
 
bool Train_Add_Sample (const CSG_String &Class_ID, const CSG_Vector &Features)
 
bool Train (bool bClr_Samples=false)
 
bool Add_Class (const CSG_String &Class_ID, const CSG_Vector &Mean, const CSG_Vector &Min, const CSG_Vector &Max, const CSG_Matrix &Cov)
 
CSG_String Print (void)
 
int Get_Feature_Count (void)
 
int Get_Class_Count (void)
 
const CSG_StringGet_Class_ID (int iClass)
 
double Get_Class_Mean (int iClass, int iFeature)
 
double Get_Class_Minimum (int iClass, int iFeature)
 
double Get_Class_Maximum (int iClass, int iFeature)
 
int Get_Class (const CSG_String &Class_ID)
 
bool Get_Class (const CSG_Vector &Features, int &Class, double &Quality, int Method)
 
void Set_Threshold_Distance (double Value)
 
double Get_Threshold_Distance (void)
 
void Set_Threshold_Angle (double Value)
 
double Get_Threshold_Angle (void)
 
void Set_Threshold_Probability (double Value)
 
double Get_Threshold_Probability (void)
 
void Set_Probability_Relative (bool Value)
 
bool Get_Probability_Relative (void)
 
void Set_WTA (int Method, bool bOn)
 
bool Get_WTA (int Method)
 

Static Public Member Functions

static CSG_String Get_Name_of_Method (int Method)
 
static CSG_String Get_Name_of_Quality (int Method)
 

Detailed Description

Definition at line 1221 of file mat_tools.h.

Constructor & Destructor Documentation

◆ CSG_Classifier_Supervised()

CSG_Classifier_Supervised::CSG_Classifier_Supervised ( void  )

◆ ~CSG_Classifier_Supervised()

CSG_Classifier_Supervised::~CSG_Classifier_Supervised ( void  )
virtual

Definition at line 2381 of file mat_tools.cpp.

References Destroy().

Member Function Documentation

◆ Add_Class()

bool CSG_Classifier_Supervised::Add_Class ( const CSG_String Class_ID,
const CSG_Vector Mean,
const CSG_Vector Min,
const CSG_Vector Max,
const CSG_Matrix Cov 
)

◆ Create()

void CSG_Classifier_Supervised::Create ( int  nFeatures)

Definition at line 2387 of file mat_tools.cpp.

References Destroy().

◆ Destroy()

void CSG_Classifier_Supervised::Destroy ( void  )

Definition at line 2398 of file mat_tools.cpp.

References CSG_String::Clear(), and SG_FREE_SAFE.

Referenced by Create(), Load(), and ~CSG_Classifier_Supervised().

◆ Get_Class() [1/2]

int CSG_Classifier_Supervised::Get_Class ( const CSG_String Class_ID)

Definition at line 2775 of file mat_tools.cpp.

References CSG_String::Cmp(), Get_Class_Count(), and Get_Class_ID().

Referenced by Train_Add_Sample().

◆ Get_Class() [2/2]

◆ Get_Class_Count()

int CSG_Classifier_Supervised::Get_Class_Count ( void  )
inline

Definition at line 1244 of file mat_tools.h.

Referenced by Get_Class().

◆ Get_Class_ID()

const CSG_String& CSG_Classifier_Supervised::Get_Class_ID ( int  iClass)
inline

Definition at line 1246 of file mat_tools.h.

Referenced by Get_Class().

◆ Get_Class_Maximum()

double CSG_Classifier_Supervised::Get_Class_Maximum ( int  iClass,
int  iFeature 
)
inline

Definition at line 1249 of file mat_tools.h.

◆ Get_Class_Mean()

double CSG_Classifier_Supervised::Get_Class_Mean ( int  iClass,
int  iFeature 
)
inline

Definition at line 1247 of file mat_tools.h.

◆ Get_Class_Minimum()

double CSG_Classifier_Supervised::Get_Class_Minimum ( int  iClass,
int  iFeature 
)
inline

Definition at line 1248 of file mat_tools.h.

◆ Get_Feature_Count()

int CSG_Classifier_Supervised::Get_Feature_Count ( void  )
inline

Definition at line 1242 of file mat_tools.h.

Referenced by Get_Class().

◆ Get_Name_of_Method()

◆ Get_Name_of_Quality()

◆ Get_Probability_Relative()

bool CSG_Classifier_Supervised::Get_Probability_Relative ( void  )

Definition at line 2434 of file mat_tools.cpp.

◆ Get_Threshold_Angle()

double CSG_Classifier_Supervised::Get_Threshold_Angle ( void  )

Definition at line 2426 of file mat_tools.cpp.

◆ Get_Threshold_Distance()

double CSG_Classifier_Supervised::Get_Threshold_Distance ( void  )

Definition at line 2422 of file mat_tools.cpp.

◆ Get_Threshold_Probability()

double CSG_Classifier_Supervised::Get_Threshold_Probability ( void  )

Definition at line 2430 of file mat_tools.cpp.

◆ Get_WTA()

bool CSG_Classifier_Supervised::Get_WTA ( int  Method)

Definition at line 2445 of file mat_tools.cpp.

References SG_CLASSIFY_SUPERVISED_WTA.

◆ Load()

◆ Print()

CSG_String CSG_Classifier_Supervised::Print ( void  )

Definition at line 2566 of file mat_tools.cpp.

References CSG_String::Format(), and SG_Get_String().

◆ Save()

bool CSG_Classifier_Supervised::Save ( const CSG_String File,
const SG_Char Feature_Info = NULL 
)

◆ Set_Probability_Relative()

void CSG_Classifier_Supervised::Set_Probability_Relative ( bool  Value)

Definition at line 2433 of file mat_tools.cpp.

◆ Set_Threshold_Angle()

void CSG_Classifier_Supervised::Set_Threshold_Angle ( double  Value)

Definition at line 2425 of file mat_tools.cpp.

◆ Set_Threshold_Distance()

void CSG_Classifier_Supervised::Set_Threshold_Distance ( double  Value)

Definition at line 2421 of file mat_tools.cpp.

◆ Set_Threshold_Probability()

void CSG_Classifier_Supervised::Set_Threshold_Probability ( double  Value)

Definition at line 2429 of file mat_tools.cpp.

◆ Set_WTA()

void CSG_Classifier_Supervised::Set_WTA ( int  Method,
bool  bOn 
)

Definition at line 2437 of file mat_tools.cpp.

References SG_CLASSIFY_SUPERVISED_WTA.

◆ Train()

bool CSG_Classifier_Supervised::Train ( bool  bClr_Samples = false)

Definition at line 2680 of file mat_tools.cpp.

References Train_Clr_Samples().

◆ Train_Add_Sample()

bool CSG_Classifier_Supervised::Train_Add_Sample ( const CSG_String Class_ID,
const CSG_Vector Features 
)

Definition at line 2652 of file mat_tools.cpp.

References Get_Class(), CSG_Vector::Get_N(), and SG_Realloc().

◆ Train_Clr_Samples()

bool CSG_Classifier_Supervised::Train_Clr_Samples ( void  )

Definition at line 2641 of file mat_tools.cpp.

Referenced by Train().


The documentation for this class was generated from the following files: