SAGA API  v9.6
CSG_Histogram Class Reference

#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_Histogramoperator= (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_StatisticsGet_Statistics (void) const
 

Detailed Description

Definition at line 1000 of file mat_tools.h.

Constructor & Destructor Documentation

◆ CSG_Histogram() [1/7]

CSG_Histogram::CSG_Histogram ( void  )

Definition at line 1212 of file mat_tools.cpp.

◆ ~CSG_Histogram()

CSG_Histogram::~CSG_Histogram ( void  )
virtual

Definition at line 1266 of file mat_tools.cpp.

References Destroy().

◆ CSG_Histogram() [2/7]

CSG_Histogram::CSG_Histogram ( const CSG_Histogram Histogram)

Definition at line 1218 of file mat_tools.cpp.

References Create().

◆ CSG_Histogram() [3/7]

CSG_Histogram::CSG_Histogram ( size_t  nClasses,
double  Minimum,
double  Maximum 
)

Definition at line 1226 of file mat_tools.cpp.

References Create().

◆ CSG_Histogram() [4/7]

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() [5/7]

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() [6/7]

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() [7/7]

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().

Member Function Documentation

◆ Add_Value()

void CSG_Histogram::Add_Value ( double  Value)

Definition at line 1327 of file mat_tools.cpp.

Referenced by Create().

◆ Create() [1/6]

bool CSG_Histogram::Create ( const CSG_Histogram Histogram)

◆ Create() [2/6]

bool CSG_Histogram::Create ( size_t  nClasses,
double  Minimum,
double  Maximum 
)

Definition at line 1516 of file mat_tools.cpp.

◆ Create() [3/6]

bool CSG_Histogram::Create ( size_t  nClasses,
double  Minimum,
double  Maximum,
class CSG_Grid pGrid,
size_t  maxSamples = 0 
)

◆ Create() [4/6]

bool CSG_Histogram::Create ( size_t  nClasses,
double  Minimum,
double  Maximum,
class CSG_Grids pGrids,
size_t  maxSamples = 0 
)

◆ Create() [5/6]

bool CSG_Histogram::Create ( size_t  nClasses,
double  Minimum,
double  Maximum,
class CSG_Table pTable,
int  Field,
size_t  maxSamples = 0 
)

◆ Create() [6/6]

bool CSG_Histogram::Create ( size_t  nClasses,
double  Minimum,
double  Maximum,
const CSG_Vector Values,
size_t  maxSamples = 0 
)

◆ Destroy()

bool CSG_Histogram::Destroy ( void  )

◆ Get_Break() [1/2]

double CSG_Histogram::Get_Break ( int  i) const
inline

Definition at line 1046 of file mat_tools.h.

Referenced by Get_Quantile(), and Get_Quantile_Value().

◆ Get_Break() [2/2]

double CSG_Histogram::Get_Break ( size_t  i) const
inline

Definition at line 1047 of file mat_tools.h.

◆ Get_Center() [1/2]

double CSG_Histogram::Get_Center ( int  i) const
inline

Definition at line 1049 of file mat_tools.h.

Referenced by Get_Quantile().

◆ Get_Center() [2/2]

double CSG_Histogram::Get_Center ( size_t  i) const
inline

Definition at line 1050 of file mat_tools.h.

◆ Get_Class_Count()

size_t CSG_Histogram::Get_Class_Count ( void  ) const
inline

Definition at line 1033 of file mat_tools.h.

Referenced by CSG_Grid::Get_Histogram(), and CSG_Grids::Get_Histogram().

◆ Get_Cumulative() [1/2]

size_t CSG_Histogram::Get_Cumulative ( int  i) const
inline

Definition at line 1041 of file mat_tools.h.

References Get_Cumulative().

Referenced by Get_Cumulative().

◆ Get_Cumulative() [2/2]

size_t CSG_Histogram::Get_Cumulative ( size_t  i) const
inline

Definition at line 1042 of file mat_tools.h.

◆ Get_Element_Count()

size_t CSG_Histogram::Get_Element_Count ( void  ) const
inline

Definition at line 1035 of file mat_tools.h.

Referenced by Get_Quantile(), Get_Quantile_Value(), Scale_Element_Count(), and Update().

◆ Get_Element_Maximum()

size_t CSG_Histogram::Get_Element_Maximum ( void  ) const
inline

Definition at line 1036 of file mat_tools.h.

◆ Get_Elements() [1/2]

size_t CSG_Histogram::Get_Elements ( int  i) const
inline

Definition at line 1038 of file mat_tools.h.

References Get_Elements().

Referenced by Get_Elements().

◆ Get_Elements() [2/2]

size_t CSG_Histogram::Get_Elements ( size_t  i) const
inline

Definition at line 1039 of file mat_tools.h.

◆ Get_Percentile()

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().

◆ Get_Percentile_Value()

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().

◆ Get_Quantile()

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().

◆ Get_Quantile_Value()

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().

◆ Get_Statistics()

const CSG_Simple_Statistics& CSG_Histogram::Get_Statistics ( void  ) const
inline

Definition at line 1066 of file mat_tools.h.

Referenced by CSG_Grid::Get_Histogram(), and CSG_Grids::Get_Histogram().

◆ Get_Value()

double CSG_Histogram::Get_Value ( double  i) const
inline

Definition at line 1044 of file mat_tools.h.

◆ operator+=()

void CSG_Histogram::operator+= ( double  Value)
inline

Definition at line 1055 of file mat_tools.h.

◆ operator=()

CSG_Histogram & CSG_Histogram::operator= ( const CSG_Histogram Histogram)

Definition at line 1695 of file mat_tools.cpp.

References Create().

◆ operator[]() [1/2]

size_t CSG_Histogram::operator[] ( int  i) const
inline

Definition at line 1057 of file mat_tools.h.

◆ operator[]() [2/2]

size_t CSG_Histogram::operator[] ( size_t  i) const
inline

Definition at line 1058 of file mat_tools.h.

◆ Scale_Element_Count()

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().

◆ Update()

bool CSG_Histogram::Update ( void  )

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