SAGA API
v9.6
|
#include <mat_tools.h>
Public Member Functions | |
CSG_Unique_Number_Statistics (bool bWeights=false) | |
virtual | ~CSG_Unique_Number_Statistics (void) |
virtual void | Create (bool bWeights=false) |
void | operator+= (double Value) |
void | Add_Value (double Value, double Weight=1.) |
double | Get_Value (int Index) const |
int | Get_Class_Index (double Value) const |
bool | Get_Class (int Index, double &Value, int &Count) const |
bool | Get_Majority (double &Value) const |
bool | Get_Majority (double &Value, int &Count) const |
bool | Get_Minority (double &Value) const |
bool | Get_Minority (double &Value, int &Count) const |
Public Member Functions inherited from CSG_Unique_Value_Statistics | |
CSG_Unique_Value_Statistics (void) | |
virtual | ~CSG_Unique_Value_Statistics (void) |
int | Get_Count (void) const |
int | Get_Count (int i) const |
double | Get_Weight (int i) const |
virtual int | Get_Majority (bool bWeighted=false) const |
virtual int | Get_Minority (bool bWeighted=false) const |
Additional Inherited Members | |
Protected Attributes inherited from CSG_Unique_Value_Statistics | |
bool | m_bWeights {false} |
CSG_Array_Int | m_Count |
CSG_Vector | m_Weight |
Definition at line 836 of file mat_tools.h.
|
inline |
Definition at line 839 of file mat_tools.h.
References CSG_Unique_Value_Statistics::Create().
|
inlinevirtual |
Definition at line 840 of file mat_tools.h.
void CSG_Unique_Number_Statistics::Add_Value | ( | double | Value, |
double | Weight = 1. |
||
) |
Definition at line 875 of file mat_tools.cpp.
References CSG_Array_Int::Add(), CSG_Vector::Add_Row(), CSG_Unique_Value_Statistics::Get_Count(), CSG_Unique_Value_Statistics::m_bWeights, CSG_Unique_Value_Statistics::m_Count, and CSG_Unique_Value_Statistics::m_Weight.
|
virtual |
Reimplemented from CSG_Unique_Value_Statistics.
Definition at line 866 of file mat_tools.cpp.
References CSG_Array_Int::Destroy(), CSG_Vector::Destroy(), CSG_Unique_Value_Statistics::m_bWeights, and CSG_Unique_Value_Statistics::m_Count.
|
inline |
Definition at line 848 of file mat_tools.h.
References CSG_Unique_Value_Statistics::Get_Count().
int CSG_Unique_Number_Statistics::Get_Class_Index | ( | double | Value | ) | const |
Definition at line 902 of file mat_tools.cpp.
References CSG_Unique_Value_Statistics::Get_Count().
|
inline |
Definition at line 858 of file mat_tools.h.
References CSG_Unique_Value_Statistics::Get_Majority().
|
inline |
Definition at line 859 of file mat_tools.h.
References CSG_Unique_Value_Statistics::Get_Majority().
|
inline |
Definition at line 860 of file mat_tools.h.
References CSG_Unique_Value_Statistics::Get_Minority().
|
inline |
Definition at line 861 of file mat_tools.h.
References CSG_Unique_Value_Statistics::Get_Minority().
|
inline |
Definition at line 846 of file mat_tools.h.
|
inline |
Definition at line 844 of file mat_tools.h.