![]() |
pktools 2.6.7
Processing Kernel for geospatial data
|
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 > | |
| T | mymin (const typename std::vector< T > &v) const |
| template<class T > | |
| T | mymax (const typename std::vector< T > &v) const |
| template<class T > | |
| T | mymin (const typename std::vector< T > &v, T minConstraint) const |
| template<class T > | |
| T | mymax (const typename std::vector< T > &v, T maxConstraint) const |
| template<class T > | |
| T | absmin (const typename std::vector< T > &v) const |
| template<class T > | |
| 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 > | |
| 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 > | |
| 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 > | |
| 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 > | |
| T | mymin (const std::vector< T > &v) const |
| template<class T > | |
| T | mymin (const std::vector< T > &v, T minConstraint) const |
| template<class T > | |
| T | mymax (const std::vector< T > &v) const |
| template<class T > | |
| T | mymax (const std::vector< T > &v, T maxConstraint) const |
| template<class T > | |
| T | absmin (const std::vector< T > &v) const |
| template<class T > | |
| 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) |
Definition at line 43 of file StatFactory.h.
| enum statfactory::StatFactory::DISTRIBUTION_TYPE |
Definition at line 48 of file StatFactory.h.
| enum statfactory::StatFactory::INTERPOLATION_TYPE |
Definition at line 46 of file StatFactory.h.
|
inline |
Definition at line 50 of file StatFactory.h.
|
inlinevirtual |
Definition at line 51 of file StatFactory.h.
|
inline |
Definition at line 620 of file StatFactory.h.
|
inline |
Definition at line 598 of file StatFactory.h.
|
inline |
Definition at line 584 of file StatFactory.h.
|
inline |
Definition at line 558 of file StatFactory.h.
|
inlinestatic |
Definition at line 62 of file StatFactory.h.
| double statfactory::StatFactory::cmoment | ( | const std::vector< T > & | v, |
| int | n | ||
| ) | const |
Definition at line 808 of file StatFactory.h.
| double statfactory::StatFactory::correlation | ( | const std::vector< T > & | x, |
| const std::vector< T > & | y, | ||
| int | delay = 0 |
||
| ) | const |
Definition at line 1290 of file StatFactory.h.
| double statfactory::StatFactory::cross_correlation | ( | const std::vector< T > & | x, |
| const std::vector< T > & | y, | ||
| int | maxdelay, | ||
| std::vector< T > & | z | ||
| ) | const |
Definition at line 1350 of file StatFactory.h.
| double statfactory::StatFactory::cvrmse | ( | const std::vector< T > & | x, |
| const std::vector< T > & | y | ||
| ) | const |
Definition at line 1255 of file StatFactory.h.
|
inline |
Definition at line 174 of file StatFactory.h.
| void statfactory::StatFactory::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 |
Definition at line 889 of file StatFactory.h.
| void statfactory::StatFactory::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 |
Definition at line 973 of file StatFactory.h.
|
inline |
Definition at line 721 of file StatFactory.h.
|
inlinestatic |
Definition at line 95 of file StatFactory.h.
|
inline |
Definition at line 57 of file StatFactory.h.
|
inline |
Definition at line 52 of file StatFactory.h.
|
inline |
Definition at line 108 of file StatFactory.h.
|
inlinestatic |
Definition at line 99 of file StatFactory.h.
|
inline |
Definition at line 124 of file StatFactory.h.
|
inlinestatic |
Definition at line 66 of file StatFactory.h.
| double statfactory::StatFactory::gsl_covariance | ( | const std::vector< T > & | x, |
| const std::vector< T > & | y | ||
| ) | const |
Definition at line 1285 of file StatFactory.h.
|
inlinestatic |
Definition at line 92 of file StatFactory.h.
| void statfactory::StatFactory::interpolateDown | ( | const std::vector< T > & | input, |
| std::vector< T > & | output, | ||
| int | nbin | ||
| ) | const |
Definition at line 1608 of file StatFactory.h.
| void statfactory::StatFactory::interpolateDown | ( | double * | input, |
| int | dim, | ||
| std::vector< T > & | output, | ||
| int | nbin | ||
| ) |
Definition at line 1635 of file StatFactory.h.
| void statfactory::StatFactory::interpolateNoData | ( | const std::vector< double > & | wavelengthIn, |
| const std::vector< T > & | input, | ||
| const std::string & | type, | ||
| std::vector< T > & | output, | ||
| bool | verbose = false |
||
| ) | const |
Definition at line 1403 of file StatFactory.h.
| void statfactory::StatFactory::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 |
Definition at line 1447 of file StatFactory.h.
| void statfactory::StatFactory::interpolateUp | ( | const std::vector< T > & | input, |
| std::vector< T > & | output, | ||
| int | nbin | ||
| ) | const |
Definition at line 1525 of file StatFactory.h.
| void statfactory::StatFactory::interpolateUp | ( | double * | input, |
| int | dim, | ||
| std::vector< T > & | output, | ||
| int | nbin | ||
| ) |
Definition at line 1584 of file StatFactory.h.
|
inline |
Definition at line 109 of file StatFactory.h.
| double statfactory::StatFactory::kurtosis | ( | const std::vector< T > & | v | ) | const |
Definition at line 836 of file StatFactory.h.
| double statfactory::StatFactory::linear_regression | ( | const std::vector< T > & | x, |
| const std::vector< T > & | y, | ||
| double & | c0, | ||
| double & | c1 | ||
| ) | const |
Definition at line 1361 of file StatFactory.h.
| double statfactory::StatFactory::linear_regression_err | ( | const std::vector< T > & | x, |
| const std::vector< T > & | y, | ||
| double & | c0, | ||
| double & | c1 | ||
| ) | const |
Definition at line 1381 of file StatFactory.h.
|
inline |
Definition at line 700 of file StatFactory.h.
| void statfactory::StatFactory::meanVar | ( | const std::vector< T > & | v, |
| double & | m1, | ||
| double & | v1 | ||
| ) | const |
Definition at line 844 of file StatFactory.h.
| T statfactory::StatFactory::median | ( | const std::vector< T > & | v | ) | const |
Definition at line 740 of file StatFactory.h.
|
inline |
Definition at line 634 of file StatFactory.h.
| double statfactory::StatFactory::moment | ( | const std::vector< T > & | v, |
| int | n | ||
| ) | const |
Definition at line 785 of file StatFactory.h.
|
inline |
Definition at line 500 of file StatFactory.h.
|
inline |
Definition at line 530 of file StatFactory.h.
|
inline |
Definition at line 338 of file StatFactory.h.
|
inline |
Definition at line 386 of file StatFactory.h.
|
inline |
Definition at line 364 of file StatFactory.h.
|
inline |
Definition at line 414 of file StatFactory.h.
|
inline |
Definition at line 442 of file StatFactory.h.
|
inline |
Definition at line 472 of file StatFactory.h.
|
inline |
Definition at line 222 of file StatFactory.h.
|
inline |
Definition at line 274 of file StatFactory.h.
|
inline |
Definition at line 248 of file StatFactory.h.
|
inline |
Definition at line 306 of file StatFactory.h.
| void statfactory::StatFactory::nearUp | ( | const std::vector< T > & | input, |
| std::vector< T > & | output | ||
| ) | const |
Definition at line 1555 of file StatFactory.h.
| void statfactory::StatFactory::normalize | ( | const std::vector< T > & | input, |
| std::vector< double > & | output | ||
| ) | const |
Definition at line 1185 of file StatFactory.h.
| void statfactory::StatFactory::normalize_pct | ( | std::vector< T > & | input | ) | const |
Definition at line 1197 of file StatFactory.h.
| double statfactory::StatFactory::nrmse | ( | const std::vector< T > & | x, |
| const std::vector< T > & | y | ||
| ) | const |
Definition at line 1228 of file StatFactory.h.
| unsigned int statfactory::StatFactory::nvalid | ( | const std::vector< T > & | v | ) | const |
Definition at line 734 of file StatFactory.h.
| T statfactory::StatFactory::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 |
Definition at line 1154 of file StatFactory.h.
| void statfactory::StatFactory::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 |
Definition at line 1096 of file StatFactory.h.
|
inline |
Definition at line 115 of file StatFactory.h.
| double statfactory::StatFactory::rmse | ( | const std::vector< T > & | x, |
| const std::vector< T > & | y | ||
| ) | const |
Definition at line 1206 of file StatFactory.h.
| void statfactory::StatFactory::scale2byte | ( | const std::vector< T1 > & | input, |
| std::vector< T2 > & | output, | ||
| unsigned char | lbound = 0, |
||
| unsigned char | ubound = 255 |
||
| ) | const |
Definition at line 873 of file StatFactory.h.
|
inline |
Definition at line 120 of file StatFactory.h.
| void statfactory::StatFactory::signature | ( | const std::vector< T > & | input, |
| double & | k, | ||
| double & | alpha, | ||
| double & | beta, | ||
| double | e | ||
| ) | const |
Definition at line 1177 of file StatFactory.h.
| double statfactory::StatFactory::skewness | ( | const std::vector< T > & | v | ) | const |
Definition at line 830 of file StatFactory.h.
|
inline |
Definition at line 679 of file StatFactory.h.
| double statfactory::StatFactory::var | ( | const std::vector< T > & | v | ) | const |
Definition at line 759 of file StatFactory.h.
1.9.3