SAGA API
v9.6
|
#include <mat_tools.h>
Public Member Functions | |
CSG_Histogram (void) | |
virtual | ~CSG_Histogram (void) |
bool | Destroy (void) |
CSG_Histogram (const CSG_Histogram &Histogram) | |
bool | Create (const CSG_Histogram &Histogram) |
CSG_Histogram (size_t nClasses, double Minimum, double Maximum) | |
bool | Create (size_t nClasses, double Minimum, double Maximum) |
CSG_Histogram (size_t nClasses, double Minimum, double Maximum, const CSG_Vector &Values, size_t maxSamples=0) | |
bool | Create (size_t nClasses, double Minimum, double Maximum, const CSG_Vector &Values, size_t maxSamples=0) |
CSG_Histogram (size_t nClasses, double Minimum, double Maximum, class CSG_Table *pTable, int Field, size_t maxSamples=0) | |
bool | Create (size_t nClasses, double Minimum, double Maximum, class CSG_Table *pTable, int Field, size_t maxSamples=0) |
CSG_Histogram (size_t nClasses, double Minimum, double Maximum, class CSG_Grid *pGrid, size_t maxSamples=0) | |
bool | Create (size_t nClasses, double Minimum, double Maximum, class CSG_Grid *pGrid, size_t maxSamples=0) |
CSG_Histogram (size_t nClasses, double Minimum, double Maximum, class CSG_Grids *pGrids, size_t maxSamples=0) | |
bool | Create (size_t nClasses, double Minimum, double Maximum, class CSG_Grids *pGrids, size_t maxSamples=0) |
void | Add_Value (double Value) |
bool | Scale_Element_Count (double Scale) |
bool | Update (void) |
size_t | Get_Class_Count (void) const |
size_t | Get_Element_Count (void) const |
size_t | Get_Element_Maximum (void) const |
size_t | Get_Elements (int i) const |
size_t | Get_Elements (size_t i) const |
size_t | Get_Cumulative (int i) const |
size_t | Get_Cumulative (size_t i) const |
double | Get_Value (double i) const |
double | Get_Break (int i) const |
double | Get_Break (size_t i) const |
double | Get_Center (int i) const |
double | Get_Center (size_t i) const |
CSG_Histogram & | operator= (const CSG_Histogram &Histogram) |
void | operator+= (double Value) |
size_t | operator[] (int i) const |
size_t | operator[] (size_t i) const |
double | Get_Quantile (double Quantile) const |
double | Get_Quantile_Value (double Value) const |
double | Get_Percentile (double Percentile) const |
double | Get_Percentile_Value (double Value) const |
const CSG_Simple_Statistics & | Get_Statistics (void) const |
Definition at line 1000 of file mat_tools.h.
CSG_Histogram::CSG_Histogram | ( | void | ) |
Definition at line 1212 of file mat_tools.cpp.
|
virtual |
Definition at line 1266 of file mat_tools.cpp.
References Destroy().
CSG_Histogram::CSG_Histogram | ( | const CSG_Histogram & | Histogram | ) |
Definition at line 1218 of file mat_tools.cpp.
References Create().
CSG_Histogram::CSG_Histogram | ( | size_t | nClasses, |
double | Minimum, | ||
double | Maximum | ||
) |
Definition at line 1226 of file mat_tools.cpp.
References Create().
CSG_Histogram::CSG_Histogram | ( | size_t | nClasses, |
double | Minimum, | ||
double | Maximum, | ||
const CSG_Vector & | Values, | ||
size_t | maxSamples = 0 |
||
) |
Definition at line 1234 of file mat_tools.cpp.
References Create().
CSG_Histogram::CSG_Histogram | ( | size_t | nClasses, |
double | Minimum, | ||
double | Maximum, | ||
class CSG_Table * | pTable, | ||
int | Field, | ||
size_t | maxSamples = 0 |
||
) |
Definition at line 1242 of file mat_tools.cpp.
References Create().
CSG_Histogram::CSG_Histogram | ( | size_t | nClasses, |
double | Minimum, | ||
double | Maximum, | ||
class CSG_Grid * | pGrid, | ||
size_t | maxSamples = 0 |
||
) |
Definition at line 1250 of file mat_tools.cpp.
References Create().
CSG_Histogram::CSG_Histogram | ( | size_t | nClasses, |
double | Minimum, | ||
double | Maximum, | ||
class CSG_Grids * | pGrids, | ||
size_t | maxSamples = 0 |
||
) |
Definition at line 1258 of file mat_tools.cpp.
References Create().
void CSG_Histogram::Add_Value | ( | double | Value | ) |
Definition at line 1327 of file mat_tools.cpp.
Referenced by Create().
bool CSG_Histogram::Create | ( | const CSG_Histogram & | Histogram | ) |
Definition at line 1495 of file mat_tools.cpp.
Referenced by CSG_Natural_Breaks::Create(), CSG_Histogram(), CSG_Grid::Get_Histogram(), CSG_Grids::Get_Histogram(), and operator=().
bool CSG_Histogram::Create | ( | size_t | nClasses, |
double | Minimum, | ||
double | Maximum | ||
) |
Definition at line 1516 of file mat_tools.cpp.
bool CSG_Histogram::Create | ( | size_t | nClasses, |
double | Minimum, | ||
double | Maximum, | ||
class CSG_Grid * | pGrid, | ||
size_t | maxSamples = 0 |
||
) |
Definition at line 1606 of file mat_tools.cpp.
References Add_Value(), CSG_Grid::asDouble(), CSG_Simple_Statistics::Get_Count(), CSG_Grid::Get_NCells(), CSG_Grid::is_NoData(), CSG_Data_Object::is_NoData_Value(), and Update().
bool CSG_Histogram::Create | ( | size_t | nClasses, |
double | Minimum, | ||
double | Maximum, | ||
class CSG_Grids * | pGrids, | ||
size_t | maxSamples = 0 |
||
) |
Definition at line 1648 of file mat_tools.cpp.
References Add_Value(), CSG_Grids::asDouble(), CSG_Simple_Statistics::Get_Count(), CSG_Grids::Get_NCells(), CSG_Grids::is_NoData(), CSG_Data_Object::is_NoData_Value(), and Update().
bool CSG_Histogram::Create | ( | size_t | nClasses, |
double | Minimum, | ||
double | Maximum, | ||
class CSG_Table * | pTable, | ||
int | Field, | ||
size_t | maxSamples = 0 |
||
) |
Definition at line 1562 of file mat_tools.cpp.
References Add_Value(), CSG_Table_Record::asDouble(), CSG_Simple_Statistics::Get_Count(), CSG_Table::Get_Count(), CSG_Table::Get_Field_Count(), CSG_Table::Get_Record(), CSG_Data_Object::is_NoData_Value(), and Update().
bool CSG_Histogram::Create | ( | size_t | nClasses, |
double | Minimum, | ||
double | Maximum, | ||
const CSG_Vector & | Values, | ||
size_t | maxSamples = 0 |
||
) |
Definition at line 1522 of file mat_tools.cpp.
References Add_Value(), CSG_Simple_Statistics::Get_Count(), CSG_Simple_Statistics::Get_Maximum(), CSG_Simple_Statistics::Get_Minimum(), CSG_Vector::Get_N(), and Update().
bool CSG_Histogram::Destroy | ( | void | ) |
Definition at line 1272 of file mat_tools.cpp.
References CSG_Simple_Statistics::Create(), and SG_FREE_SAFE.
Referenced by CSG_Grid::Get_Histogram(), CSG_Grids::Get_Histogram(), CSG_Grid::On_Update(), CSG_Grids::On_Update(), and ~CSG_Histogram().
|
inline |
Definition at line 1046 of file mat_tools.h.
Referenced by Get_Quantile(), and Get_Quantile_Value().
|
inline |
Definition at line 1047 of file mat_tools.h.
|
inline |
Definition at line 1049 of file mat_tools.h.
Referenced by Get_Quantile().
|
inline |
Definition at line 1050 of file mat_tools.h.
|
inline |
Definition at line 1033 of file mat_tools.h.
Referenced by CSG_Grid::Get_Histogram(), and CSG_Grids::Get_Histogram().
|
inline |
Definition at line 1041 of file mat_tools.h.
References Get_Cumulative().
Referenced by Get_Cumulative().
|
inline |
Definition at line 1042 of file mat_tools.h.
|
inline |
Definition at line 1035 of file mat_tools.h.
Referenced by Get_Quantile(), Get_Quantile_Value(), Scale_Element_Count(), and Update().
|
inline |
Definition at line 1036 of file mat_tools.h.
|
inline |
Definition at line 1038 of file mat_tools.h.
References Get_Elements().
Referenced by Get_Elements().
|
inline |
Definition at line 1039 of file mat_tools.h.
double CSG_Histogram::Get_Percentile | ( | double | Percentile | ) | const |
Returns the correspondend value for the requested percentile.
Definition at line 1444 of file mat_tools.cpp.
References Get_Quantile().
double CSG_Histogram::Get_Percentile_Value | ( | double | Value | ) | const |
Returns the correspondend percentile for the requested value.
Definition at line 1484 of file mat_tools.cpp.
References Get_Quantile_Value().
double CSG_Histogram::Get_Quantile | ( | double | Quantile | ) | const |
Returns the correspondend value for the requested quantile.
Definition at line 1409 of file mat_tools.cpp.
References Get_Break(), Get_Center(), and Get_Element_Count().
Referenced by Get_Percentile().
double CSG_Histogram::Get_Quantile_Value | ( | double | Value | ) | const |
Returns the correspondend quantile for the requested value.
Definition at line 1453 of file mat_tools.cpp.
References Get_Break(), and Get_Element_Count().
Referenced by Get_Percentile_Value().
|
inline |
Definition at line 1066 of file mat_tools.h.
Referenced by CSG_Grid::Get_Histogram(), and CSG_Grids::Get_Histogram().
|
inline |
Definition at line 1044 of file mat_tools.h.
|
inline |
Definition at line 1055 of file mat_tools.h.
CSG_Histogram & CSG_Histogram::operator= | ( | const CSG_Histogram & | Histogram | ) |
Definition at line 1695 of file mat_tools.cpp.
References Create().
|
inline |
Definition at line 1057 of file mat_tools.h.
|
inline |
Definition at line 1058 of file mat_tools.h.
bool CSG_Histogram::Scale_Element_Count | ( | double | Scale | ) |
Definition at line 1345 of file mat_tools.cpp.
References Get_Element_Count(), CSG_Simple_Statistics::Set_Count(), and Update().
bool CSG_Histogram::Update | ( | void | ) |
Definition at line 1363 of file mat_tools.cpp.
References Get_Element_Count(), and CSG_Simple_Statistics::Get_Mean().
Referenced by Create(), CSG_Grid::Get_Histogram(), CSG_Grids::Get_Histogram(), and Scale_Element_Count().