Ilwis-Objects  1.0
GIS and Remote Sensing framework for data access and processing
 All Classes Functions Enumerations Pages
Classes | Public Types | Public Member Functions | List of all members
Ilwis::ContainerStatistics< DataType > Class Template Reference

Classes

struct  HistogramBin
 

Public Types

enum  PropertySets {
  pBASIC =0, pMIN =1, pMAX =2, pDISTANCE =4,
  pDELTA =8, pNETTOCOUNT =16, pCOUNT =32, pSUM =64,
  pMEAN =128, pMEDIAN =256, pPREDOMINANT =512, pSTDEV =1024,
  pHISTOGRAM =2048, pLAST =4096, pALL =4294967296
}
 
typedef accumulator_set
< DataType, stats< tag::mean,
tag::min, tag::max, tag::count > > 
Basic
 
typedef accumulator_set
< DataType, stats< tag::median > > 
Median
 

Public Member Functions

double operator[] (PropertySets method) const
 
std::vector< HistogramBinhistogram ()
 
double prop (PropertySets method) const
 
quint16 significantDigits () const
 
void findSignificantDigits (double distance)
 
void binCount (quint32 value)
 
template<typename IterType >
bool calculate (const IterType &begin, const IterType &end, PropertySets mode=pBASIC)
 
bool isValid () const
 
double stretchLinear (double input, int stretchRange) const
 
std::pair< double, double > stretchLimits (double percent) const
 stretches lower and upper limits by percent. More...
 

Member Function Documentation

template<typename DataType>
std::pair<double,double> Ilwis::ContainerStatistics< DataType >::stretchLimits ( double  percent) const
inline

stretches lower and upper limits by percent.

Stretches the value range by percent. Lower and upper limits are stretched equally. If stretch value is undefined, the limits of the current value range are returned.

Parameters
percenthow much the limits shall be stretched.
Returns
stretched limits of the value range.

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