SAGA API
v9.6
|
#include <mat_tools.h>
Public Member Functions | |
CSG_Category_Statistics (TSG_Data_Type Type=SG_DATATYPE_String) | |
virtual | ~CSG_Category_Statistics (void) |
void | Create (TSG_Data_Type Type=SG_DATATYPE_String) |
void | Destroy (void) |
TSG_Data_Type | Get_Category_Type (void) const |
int | Add_Value (int Value) |
int | Add_Value (double Value) |
int | Add_Value (const CSG_String &Value) |
void | operator+= (int Value) |
void | operator+= (double Value) |
void | operator+= (const CSG_String &Value) |
bool | Sort (void) |
int | Get_Count (void) const |
int | Get_Count (int iCategory) const |
int | asInt (int iCategory) const |
double | asDouble (int iCategory) const |
CSG_String | asString (int iCategory) const |
int | Get_Category (int Value) const |
int | Get_Category (double Value) const |
int | Get_Category (const CSG_String &Value) const |
bool | Get_Category (int iCategory, int &Value, int &Count) const |
bool | Get_Category (int iCategory, double &Value, int &Count) const |
bool | Get_Category (int iCategory, CSG_String &Value, int &Count) const |
int | Get_Majority (void) |
bool | Get_Majority (int &Value) |
bool | Get_Majority (double &Value) |
bool | Get_Majority (CSG_String &Value) |
bool | Get_Majority (int &Value, int &Count) |
bool | Get_Majority (double &Value, int &Count) |
bool | Get_Majority (CSG_String &Value, int &Count) |
int | Get_Minority (void) |
bool | Get_Minority (int &Value) |
bool | Get_Minority (double &Value) |
bool | Get_Minority (CSG_String &Value) |
bool | Get_Minority (int &Value, int &Count) |
bool | Get_Minority (double &Value, int &Count) |
bool | Get_Minority (CSG_String &Value, int &Count) |
Definition at line 913 of file mat_tools.h.
CSG_Category_Statistics::CSG_Category_Statistics | ( | TSG_Data_Type | Type = SG_DATATYPE_String | ) |
Definition at line 978 of file mat_tools.cpp.
References Create().
|
virtual |
Definition at line 986 of file mat_tools.cpp.
int CSG_Category_Statistics::Add_Value | ( | const CSG_String & | Value | ) |
Definition at line 1085 of file mat_tools.cpp.
References CSG_Table::Add_Record(), CSG_Table_Record::Add_Value(), Get_Category(), CSG_Table::Get_Count(), and CSG_Table::Get_Record_byIndex().
int CSG_Category_Statistics::Add_Value | ( | double | Value | ) |
Definition at line 1066 of file mat_tools.cpp.
References CSG_Table::Add_Record(), CSG_Table_Record::Add_Value(), Get_Category(), CSG_Table::Get_Count(), and CSG_Table::Get_Record_byIndex().
int CSG_Category_Statistics::Add_Value | ( | int | Value | ) |
Definition at line 1047 of file mat_tools.cpp.
References CSG_Table::Add_Record(), CSG_Table_Record::Add_Value(), Get_Category(), CSG_Table::Get_Count(), and CSG_Table::Get_Record_byIndex().
double CSG_Category_Statistics::asDouble | ( | int | iCategory | ) | const |
Definition at line 1140 of file mat_tools.cpp.
References CSG_Table_Record::asDouble(), and CSG_Table::Get_Record_byIndex().
int CSG_Category_Statistics::asInt | ( | int | iCategory | ) | const |
Definition at line 1132 of file mat_tools.cpp.
References CSG_Table_Record::asInt(), and CSG_Table::Get_Record_byIndex().
Referenced by Get_Majority().
CSG_String CSG_Category_Statistics::asString | ( | int | iCategory | ) | const |
Definition at line 1148 of file mat_tools.cpp.
References CSG_Table_Record::asString(), CSG_Table::Get_Record_byIndex(), and SG_T.
void CSG_Category_Statistics::Create | ( | TSG_Data_Type | Type = SG_DATATYPE_String | ) |
Definition at line 992 of file mat_tools.cpp.
References CSG_Table::Add_Field(), CSG_Table::Destroy(), and SG_DATATYPE_ULong.
Referenced by CSG_Category_Statistics().
void CSG_Category_Statistics::Destroy | ( | void | ) |
Definition at line 1001 of file mat_tools.cpp.
References CSG_Table::Del_Records().
int CSG_Category_Statistics::Get_Category | ( | const CSG_String & | Value | ) | const |
Definition at line 1034 of file mat_tools.cpp.
References CSG_Table::Find_Record(), CSG_Table::Get_Count(), and CSG_Table_Record::Get_Index().
int CSG_Category_Statistics::Get_Category | ( | double | Value | ) | const |
Definition at line 1026 of file mat_tools.cpp.
References CSG_Table::Find_Record(), CSG_Table::Get_Count(), and CSG_Table_Record::Get_Index().
|
inline |
Definition at line 961 of file mat_tools.h.
|
inline |
Definition at line 953 of file mat_tools.h.
|
inline |
Definition at line 945 of file mat_tools.h.
int CSG_Category_Statistics::Get_Category | ( | int | Value | ) | const |
Definition at line 1018 of file mat_tools.cpp.
References CSG_Table::Find_Record(), CSG_Table::Get_Count(), and CSG_Table_Record::Get_Index().
Referenced by Add_Value().
TSG_Data_Type CSG_Category_Statistics::Get_Category_Type | ( | void | ) | const |
Definition at line 1007 of file mat_tools.cpp.
References CSG_Table::Get_Field_Type().
int CSG_Category_Statistics::Get_Count | ( | int | iCategory | ) | const |
Definition at line 1124 of file mat_tools.cpp.
References CSG_Table_Record::asInt(), and CSG_Table::Get_Record_byIndex().
int CSG_Category_Statistics::Get_Count | ( | void | ) | const |
Definition at line 1117 of file mat_tools.cpp.
References CSG_Table::Get_Count().
|
inline |
Definition at line 972 of file mat_tools.h.
References Get_Majority().
Referenced by Get_Majority().
|
inline |
Definition at line 975 of file mat_tools.h.
References Get_Majority().
Referenced by Get_Majority().
|
inline |
Definition at line 971 of file mat_tools.h.
References Get_Majority().
Referenced by Get_Majority().
|
inline |
Definition at line 974 of file mat_tools.h.
References Get_Majority().
Referenced by Get_Majority().
|
inline |
Definition at line 970 of file mat_tools.h.
References Get_Majority().
Referenced by Get_Majority().
|
inline |
Definition at line 973 of file mat_tools.h.
References Get_Majority().
Referenced by Get_Majority().
int CSG_Category_Statistics::Get_Majority | ( | void | ) |
Definition at line 1161 of file mat_tools.cpp.
References CSG_Table_Record::asInt(), asInt(), CSG_Table::Get_Count(), and CSG_Table::Get_Record_byIndex().
|
inline |
Definition at line 980 of file mat_tools.h.
References Get_Minority().
Referenced by Get_Minority().
|
inline |
Definition at line 983 of file mat_tools.h.
References Get_Minority().
Referenced by Get_Minority().
|
inline |
Definition at line 979 of file mat_tools.h.
References Get_Minority().
Referenced by Get_Minority().
|
inline |
Definition at line 982 of file mat_tools.h.
References Get_Minority().
Referenced by Get_Minority().
|
inline |
Definition at line 978 of file mat_tools.h.
References Get_Minority().
Referenced by Get_Minority().
|
inline |
Definition at line 981 of file mat_tools.h.
References Get_Minority().
Referenced by Get_Minority().
int CSG_Category_Statistics::Get_Minority | ( | void | ) |
Definition at line 1183 of file mat_tools.cpp.
References CSG_Table_Record::asInt(), CSG_Table::Get_Count(), and CSG_Table::Get_Record_byIndex().
|
inline |
Definition at line 930 of file mat_tools.h.
|
inline |
Definition at line 929 of file mat_tools.h.
|
inline |
Definition at line 928 of file mat_tools.h.
bool CSG_Category_Statistics::Sort | ( | void | ) |
Definition at line 1105 of file mat_tools.cpp.
References CSG_Table::Set_Index(), and TABLE_INDEX_Ascending.