pktools  2.6.7
Processing Kernel for geospatial data
Public Types | Public Member Functions | Static Public Member Functions | List of all members
statfactory::StatFactory Class Reference

Public Types

enum  INTERPOLATION_TYPE {
  undefined =0, linear =1, polynomial =2, cspline =3,
  cspline_periodic =4, akima =5, akima_periodic =6
}
 
enum  DISTRIBUTION_TYPE { uniform =1, gaussian =2 }
 

Public Member Functions

INTERPOLATION_TYPE getInterpolationType (const std::string interpolationType)
 
DISTRIBUTION_TYPE getDistributionType (const std::string distributionType)
 
void getNodataValues (std::vector< double > &nodatav) const
 
bool isNoData (double value) const
 
unsigned int pushNodDataValue (double noDataValue)
 
unsigned int setNoDataValues (std::vector< double > vnodata)
 
double getRandomValue (const gsl_rng *r, const std::string type, double a=0, double b=1) const
 
template<class T >
mymin (const typename std::vector< T > &v) const
 
template<class T >
mymax (const typename std::vector< T > &v) const
 
template<class T >
mymin (const typename std::vector< T > &v, T minConstraint) const
 
template<class T >
mymax (const typename std::vector< T > &v, T maxConstraint) const
 
template<class T >
absmin (const typename std::vector< T > &v) const
 
template<class T >
absmax (const typename std::vector< T > &v) const
 
template<class T >
std::vector< T >::const_iterator mymin (const typename std::vector< T > &v, typename std::vector< T >::const_iterator begin, typename std::vector< T >::const_iterator end) const
 
template<class T >
std::vector< T >::iterator mymin (const typename std::vector< T > &v, typename std::vector< T >::iterator begin, typename std::vector< T >::iterator end) const
 
template<class T >
std::vector< T >::const_iterator mymin (const typename std::vector< T > &v, typename std::vector< T >::const_iterator begin, typename std::vector< T >::const_iterator end, T minConstraint) const
 
template<class T >
std::vector< T >::iterator mymin (const typename std::vector< T > &v, typename std::vector< T >::iterator begin, typename std::vector< T >::iterator end, T minConstraint) const
 
template<class T >
std::vector< T >::const_iterator mymax (const std::vector< T > &v, typename std::vector< T >::const_iterator begin, typename std::vector< T >::const_iterator end) const
 
template<class T >
std::vector< T >::iterator mymax (const std::vector< T > &v, typename std::vector< T >::iterator begin, typename std::vector< T >::iterator end) const
 
template<class T >
std::vector< T >::const_iterator mymax (const std::vector< T > &v, typename std::vector< T >::const_iterator begin, typename std::vector< T >::const_iterator end, T maxConstraint) const
 
template<class T >
std::vector< T >::iterator mymax (const std::vector< T > &v, typename std::vector< T >::iterator begin, typename std::vector< T >::iterator end, T maxConstraint) const
 
template<class T >
std::vector< T >::const_iterator absmin (const std::vector< T > &v, typename std::vector< T >::const_iterator begin, typename std::vector< T >::const_iterator end) const
 
template<class T >
std::vector< T >::const_iterator absmax (const std::vector< T > &v, typename std::vector< T >::const_iterator begin, typename std::vector< T >::const_iterator end) const
 
template<class T >
void minmax (const std::vector< T > &v, typename std::vector< T >::const_iterator begin, typename std::vector< T >::const_iterator end, T &theMin, T &theMax) const
 
template<class T >
sum (const std::vector< T > &v) const
 
template<class T >
double mean (const std::vector< T > &v) const
 
template<class T >
void eraseNoData (std::vector< T > &v) const
 
template<class T >
unsigned int nvalid (const std::vector< T > &v) const
 
template<class T >
median (const std::vector< T > &v) const
 
template<class T >
double var (const std::vector< T > &v) const
 
template<class T >
double moment (const std::vector< T > &v, int n) const
 
template<class T >
double cmoment (const std::vector< T > &v, int n) const
 
template<class T >
double skewness (const std::vector< T > &v) const
 
template<class T >
double kurtosis (const std::vector< T > &v) const
 
template<class T >
void meanVar (const std::vector< T > &v, double &m1, double &v1) const
 
template<class T1 , class T2 >
void scale2byte (const std::vector< T1 > &input, std::vector< T2 > &output, unsigned char lbound=0, unsigned char ubound=255) const
 
template<class T >
void distribution (const std::vector< T > &input, typename std::vector< T >::const_iterator begin, typename std::vector< T >::const_iterator end, std::vector< double > &output, int nbin, T &minimum, T &maximum, double sigma=0, const std::string &filename="") const
 
template<class T >
void distribution (const std::vector< T > &input, std::vector< double > &output, int nbin, double sigma=0, const std::string &filename="") const
 
template<class T >
void distribution2d (const std::vector< T > &inputX, const std::vector< T > &inputY, std::vector< std::vector< double > > &output, int nbin, T &minX, T &maxX, T &minY, T &maxY, double sigma=0, const std::string &filename="") const
 
template<class T >
void cumulative (const std::vector< T > &input, typename std::vector< T >::const_iterator begin, typename std::vector< T >::const_iterator end, std::vector< int > &output, int nbin, T &minimum, T &maximum) const
 
template<class T >
void percentiles (const std::vector< T > &input, typename std::vector< T >::const_iterator begin, typename std::vector< T >::const_iterator end, std::vector< T > &output, int nbin, T &minimum, T &maximum, const std::string &filename="") const
 
template<class T >
percentile (const std::vector< T > &input, typename std::vector< T >::const_iterator begin, typename std::vector< T >::const_iterator end, double percent, T minimum=0, T maximum=0) const
 
template<class T >
void signature (const std::vector< T > &input, double &k, double &alpha, double &beta, double e) const
 
void signature (double m1, double m2, double &k, double &alpha, double &beta, double e) const
 
template<class T >
void normalize (const std::vector< T > &input, std::vector< double > &output) const
 
template<class T >
void normalize_pct (std::vector< T > &input) const
 
template<class T >
double rmse (const std::vector< T > &x, const std::vector< T > &y) const
 
template<class T >
double nrmse (const std::vector< T > &x, const std::vector< T > &y) const
 
template<class T >
double cvrmse (const std::vector< T > &x, const std::vector< T > &y) const
 
template<class T >
double correlation (const std::vector< T > &x, const std::vector< T > &y, int delay=0) const
 
template<class T >
double gsl_covariance (const std::vector< T > &x, const std::vector< T > &y) const
 
template<class T >
double cross_correlation (const std::vector< T > &x, const std::vector< T > &y, int maxdelay, std::vector< T > &z) const
 
template<class T >
double linear_regression (const std::vector< T > &x, const std::vector< T > &y, double &c0, double &c1) const
 
template<class T >
double linear_regression_err (const std::vector< T > &x, const std::vector< T > &y, double &c0, double &c1) const
 
template<class T >
void interpolateNoData (const std::vector< double > &wavelengthIn, const std::vector< T > &input, const std::string &type, std::vector< T > &output, bool verbose=false) const
 
template<class T >
void interpolateUp (const std::vector< double > &wavelengthIn, const std::vector< T > &input, const std::vector< double > &wavelengthOut, const std::string &type, std::vector< T > &output, bool verbose=false) const
 
template<class T >
void interpolateUp (const std::vector< double > &wavelengthIn, const std::vector< std::vector< T > > &input, const std::vector< double > &wavelengthOut, const std::string &type, std::vector< std::vector< T > > &output, bool verbose=false) const
 
template<class T >
void interpolateUp (const std::vector< T > &input, std::vector< T > &output, int nbin) const
 
template<class T >
void nearUp (const std::vector< T > &input, std::vector< T > &output) const
 
template<class T >
void interpolateUp (double *input, int dim, std::vector< T > &output, int nbin)
 
template<class T >
void interpolateDown (const std::vector< T > &input, std::vector< T > &output, int nbin) const
 
template<class T >
void interpolateDown (double *input, int dim, std::vector< T > &output, int nbin)
 
template<class T >
std::vector< T >::const_iterator mymin (const std::vector< T > &v, typename std::vector< T >::const_iterator begin, typename std::vector< T >::const_iterator end) const
 
template<class T >
std::vector< T >::iterator mymin (const std::vector< T > &v, typename std::vector< T >::iterator begin, typename std::vector< T >::iterator end) const
 
template<class T >
std::vector< T >::const_iterator mymin (const std::vector< T > &v, typename std::vector< T >::const_iterator begin, typename std::vector< T >::const_iterator end, T minConstraint) const
 
template<class T >
std::vector< T >::iterator mymin (const std::vector< T > &v, typename std::vector< T >::iterator begin, typename std::vector< T >::iterator end, T minConstraint) const
 
template<class T >
std::vector< T >::const_iterator mymax (const std::vector< T > &v, typename std::vector< T >::const_iterator begin, typename std::vector< T >::const_iterator end) const
 
template<class T >
std::vector< T >::iterator mymax (const std::vector< T > &v, typename std::vector< T >::iterator begin, typename std::vector< T >::iterator end) const
 
template<class T >
std::vector< T >::const_iterator mymax (const std::vector< T > &v, typename std::vector< T >::const_iterator begin, typename std::vector< T >::const_iterator end, T maxConstraint) const
 
template<class T >
std::vector< T >::iterator mymax (const std::vector< T > &v, typename std::vector< T >::iterator begin, typename std::vector< T >::iterator end, T maxConstraint) const
 
template<class T >
mymin (const std::vector< T > &v) const
 
template<class T >
mymin (const std::vector< T > &v, T minConstraint) const
 
template<class T >
mymax (const std::vector< T > &v) const
 
template<class T >
mymax (const std::vector< T > &v, T maxConstraint) const
 
template<class T >
std::vector< T >::const_iterator absmin (const std::vector< T > &v, typename std::vector< T >::const_iterator begin, typename std::vector< T >::const_iterator end) const
 
template<class T >
absmin (const std::vector< T > &v) const
 
template<class T >
std::vector< T >::const_iterator absmax (const std::vector< T > &v, typename std::vector< T >::const_iterator begin, typename std::vector< T >::const_iterator end) const
 
template<class T >
absmax (const std::vector< T > &v) const
 

Static Public Member Functions

static void allocAcc (gsl_interp_accel *&acc)
 
static void getSpline (const std::string type, int size, gsl_spline *&spline)
 
static int initSpline (gsl_spline *spline, const double *x, const double *y, int size)
 
static double evalSpline (gsl_spline *spline, double x, gsl_interp_accel *acc)
 
static gsl_rng * getRandomGenerator (unsigned long int theSeed)
 

Detailed Description

Definition at line 43 of file StatFactory.h.


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