|  | SAGA API v9.10
    | 
#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, const CSG_Vector &Values, double Minimum=0., double Maximum=0., size_t maxSamples=0) | |
| bool | Create (size_t nClasses, const CSG_Vector &Values, double Minimum=0., double Maximum=0., size_t maxSamples=0) | 
| CSG_Histogram (size_t nClasses, class CSG_Table *pTable, int Field, double Minimum=0., double Maximum=0., size_t maxSamples=0, int Normalize=-1, double Scale=1.) | |
| bool | Create (size_t nClasses, class CSG_Table *pTable, int Field, double Minimum=0., double Maximum=0., size_t maxSamples=0, int Normalize=-1, double Scale=1.) | 
| CSG_Histogram (size_t nClasses, class CSG_Grid *pGrid, double Minimum=0., double Maximum=0., size_t maxSamples=0) | |
| bool | Create (size_t nClasses, class CSG_Grid *pGrid, double Minimum=0., double Maximum=0., size_t maxSamples=0) | 
| CSG_Histogram (size_t nClasses, class CSG_Grids *pGrids, double Minimum=0., double Maximum=0., size_t maxSamples=0) | |
| bool | Create (size_t nClasses, class CSG_Grids *pGrids, double Minimum=0., double Maximum=0., size_t maxSamples=0) | 
| void | Add_Value (double Value) | 
| bool | Add_Histogram (const CSG_Histogram &Histogram) | 
| bool | Scale_Element_Count (double Scale) | 
| bool | Update (void) | 
| bool | is_Okay (void) const | 
| 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 1012 of file mat_tools.h.
| CSG_Histogram::CSG_Histogram | ( | void | ) | 
Definition at line 1215 of file mat_tools.cpp.
Referenced by Add_Histogram(), Create(), CSG_Histogram(), and operator=().
| 
 | virtual | 
Definition at line 1269 of file mat_tools.cpp.
References Destroy().
| CSG_Histogram::CSG_Histogram | ( | const CSG_Histogram & | Histogram | ) | 
Definition at line 1221 of file mat_tools.cpp.
References Create(), and CSG_Histogram().
| CSG_Histogram::CSG_Histogram | ( | size_t | nClasses, | 
| double | Minimum, | ||
| double | Maximum ) | 
Definition at line 1229 of file mat_tools.cpp.
| CSG_Histogram::CSG_Histogram | ( | size_t | nClasses, | 
| const CSG_Vector & | Values, | ||
| double | Minimum = 0., | ||
| double | Maximum = 0., | ||
| size_t | maxSamples = 0 ) | 
Definition at line 1237 of file mat_tools.cpp.
| CSG_Histogram::CSG_Histogram | ( | size_t | nClasses, | 
| class CSG_Table * | pTable, | ||
| int | Field, | ||
| double | Minimum = 0., | ||
| double | Maximum = 0., | ||
| size_t | maxSamples = 0, | ||
| int | Normalize = -1, | ||
| double | Scale = 1. ) | 
Definition at line 1245 of file mat_tools.cpp.
| CSG_Histogram::CSG_Histogram | ( | size_t | nClasses, | 
| class CSG_Grid * | pGrid, | ||
| double | Minimum = 0., | ||
| double | Maximum = 0., | ||
| size_t | maxSamples = 0 ) | 
Definition at line 1253 of file mat_tools.cpp.
| CSG_Histogram::CSG_Histogram | ( | size_t | nClasses, | 
| class CSG_Grids * | pGrids, | ||
| double | Minimum = 0., | ||
| double | Maximum = 0., | ||
| size_t | maxSamples = 0 ) | 
Definition at line 1261 of file mat_tools.cpp.
| bool CSG_Histogram::Add_Histogram | ( | const CSG_Histogram & | Histogram | ) | 
Definition at line 1408 of file mat_tools.cpp.
References CSG_Histogram().
| void CSG_Histogram::Add_Value | ( | double | Value | ) | 
Definition at line 1330 of file mat_tools.cpp.
Referenced by Create(), Create(), Create(), Create(), and operator+=().
| bool CSG_Histogram::Create | ( | const CSG_Histogram & | Histogram | ) | 
Definition at line 1518 of file mat_tools.cpp.
References CSG_Histogram().
Referenced by CSG_Table::_Histogram_Update(), CSG_Histogram(), CSG_Histogram(), CSG_Histogram(), CSG_Histogram(), CSG_Histogram(), CSG_Histogram(), CSG_Grid::Get_Histogram(), CSG_Grids::Get_Histogram(), and operator=().
| bool CSG_Histogram::Create | ( | size_t | nClasses, | 
| class CSG_Grid * | pGrid, | ||
| double | Minimum = 0., | ||
| double | Maximum = 0., | ||
| size_t | maxSamples = 0 ) | 
Definition at line 1641 of file mat_tools.cpp.
References Add_Value(), CSG_Grid::asDouble(), CSG_Grid::Get_NCells(), CSG_Grid::is_NoData(), Maximum, Minimum, and Update().
| bool CSG_Histogram::Create | ( | size_t | nClasses, | 
| class CSG_Grids * | pGrids, | ||
| double | Minimum = 0., | ||
| double | Maximum = 0., | ||
| size_t | maxSamples = 0 ) | 
Definition at line 1681 of file mat_tools.cpp.
References Add_Value(), CSG_Grids::asDouble(), CSG_Grids::Get_NCells(), CSG_Grids::is_NoData(), Maximum, Minimum, and Update().
| bool CSG_Histogram::Create | ( | size_t | nClasses, | 
| class CSG_Table * | pTable, | ||
| int | Field, | ||
| double | Minimum = 0., | ||
| double | Maximum = 0., | ||
| size_t | maxSamples = 0, | ||
| int | Normalize = -1, | ||
| double | Scale = 1. ) | 
Definition at line 1585 of file mat_tools.cpp.
References Add_Value(), CSG_Table::Get_Count(), CSG_Table::Get_Field_Count(), CSG_Table::Get_Value(), Maximum, Minimum, and Update().
| bool CSG_Histogram::Create | ( | size_t | nClasses, | 
| const CSG_Vector & | Values, | ||
| double | Minimum = 0., | ||
| double | Maximum = 0., | ||
| size_t | maxSamples = 0 ) | 
Definition at line 1545 of file mat_tools.cpp.
References Add_Value(), CSG_Simple_Statistics::Get_Maximum(), CSG_Simple_Statistics::Get_Minimum(), CSG_Vector::Get_N(), Maximum, Minimum, and Update().
| bool CSG_Histogram::Create | ( | size_t | nClasses, | 
| double | Minimum, | ||
| double | Maximum ) | 
Definition at line 1539 of file mat_tools.cpp.
| bool CSG_Histogram::Destroy | ( | void | ) | 
Definition at line 1275 of file mat_tools.cpp.
References SG_FREE_SAFE.
Referenced by ~CSG_Histogram().
| 
 | inline | 
Definition at line 1062 of file mat_tools.h.
References Get_Value().
Referenced by Get_Quantile(), and Get_Quantile_Value().
| 
 | inline | 
Definition at line 1063 of file mat_tools.h.
References Get_Value().
| 
 | inline | 
| 
 | inline | 
Definition at line 1066 of file mat_tools.h.
References Get_Value().
| 
 | inline | 
Definition at line 1049 of file mat_tools.h.
Referenced by CSG_Table::_Histogram_Update().
| 
 | inline | 
Definition at line 1057 of file mat_tools.h.
References Get_Cumulative().
Referenced by Get_Cumulative().
| 
 | inline | 
Definition at line 1058 of file mat_tools.h.
| 
 | inline | 
Definition at line 1051 of file mat_tools.h.
Referenced by Get_Quantile(), Get_Quantile_Value(), is_Okay(), Scale_Element_Count(), and Update().
| 
 | inline | 
Definition at line 1052 of file mat_tools.h.
| 
 | inline | 
Definition at line 1054 of file mat_tools.h.
References Get_Elements().
Referenced by Get_Elements(), operator[](), and operator[]().
| 
 | inline | 
Definition at line 1055 of file mat_tools.h.
| double CSG_Histogram::Get_Percentile | ( | double | Percentile | ) | const | 
Returns the correspondent value for the requested percentile.
Definition at line 1467 of file mat_tools.cpp.
References Get_Quantile().
| double CSG_Histogram::Get_Percentile_Value | ( | double | Value | ) | const | 
Returns the correspondent percentile for the requested value.
Definition at line 1507 of file mat_tools.cpp.
References Get_Quantile_Value().
| double CSG_Histogram::Get_Quantile | ( | double | Quantile | ) | const | 
Returns the correspondent value for the requested quantile.
Definition at line 1432 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 correspondent quantile for the requested value.
Definition at line 1476 of file mat_tools.cpp.
References Get_Break(), and Get_Element_Count().
Referenced by Get_Percentile_Value().
| 
 | inline | 
Definition at line 1082 of file mat_tools.h.
| 
 | inline | 
Definition at line 1060 of file mat_tools.h.
Referenced by Get_Break(), Get_Break(), Get_Center(), and Get_Center().
| 
 | inline | 
Definition at line 1047 of file mat_tools.h.
References Get_Element_Count().
Referenced by CSG_Table::_Histogram_Update().
| 
 | inline | 
Definition at line 1071 of file mat_tools.h.
References Add_Value().
| CSG_Histogram & CSG_Histogram::operator= | ( | const CSG_Histogram & | Histogram | ) | 
Definition at line 1726 of file mat_tools.cpp.
References Create(), and CSG_Histogram().
| 
 | inline | 
Definition at line 1073 of file mat_tools.h.
References Get_Elements().
| 
 | inline | 
Definition at line 1074 of file mat_tools.h.
References Get_Elements().
| bool CSG_Histogram::Scale_Element_Count | ( | double | Scale | ) | 
Definition at line 1348 of file mat_tools.cpp.
References Get_Element_Count(), and Update().
| bool CSG_Histogram::Update | ( | void | ) | 
Definition at line 1366 of file mat_tools.cpp.
References Get_Element_Count().
Referenced by Create(), Create(), Create(), Create(), CSG_Grid::Get_Histogram(), CSG_Grids::Get_Histogram(), and Scale_Element_Count().