Functions | |
| template<typename T> | |
| T | Median (T *xd, const int nd, bool save_flag=true) throw (Exception) |
| Compute median of an array of length nd; array xd is returned sorted, unless save_flag is true. | |
| template<typename T> | |
| void | Quartiles (const T *xd, const int nd, T &Q1, T &Q3) throw (Exception) |
| Compute the quartiles Q1 and Q3 of an array of length nd. | |
| template<typename T> | |
| T | MedianAbsoluteDeviation (T *xd, int nd, T &M, bool save_flag=true) throw (Exception) |
| Compute the median absolute deviation of a double array of length nd, as well as the median (M = Median(xd,nd)); NB this routine will trash the array xd unless save_flag is true (default). | |
| template<typename T> | |
| T | MAD (T *xd, int nd, T &M, bool save_flag=true) throw (Exception) |
| Compute the median absolute deviation of a double array of length nd; see MedianAbsoluteDeviation(). | |
| template<typename T> | |
| T | MEstimate (const T *xd, int nd, const T &M, const T &MAD, T *w=NULL) throw (Exception) |
| Compute the m-estimate. | |
| int | RobustPolyFit (double *xd, const double *td, int nd, int n, double *c, double *w=NULL) throw (Exception) |
| Fit a polynomial of degree n to data xd, with independent variable td, using robust techniques. | |
| void | StemLeafPlot (std::ostream &os, double *xd, long nd, std::string msg=std::string("")) throw (Exception) |
| Print 'stem and leaf' plot of the data in the double array xd of length nd, with an optional message, on the given output ostream. | |
| void | QuantilePlot (double *yd, long nd, double *xd) throw (Exception) |
| Generate data for a quantile-quantile plot. | |
|
||||||||||||||||||||
|
Compute the median absolute deviation of a double array of length nd; see MedianAbsoluteDeviation().
Definition at line 413 of file RobustStats.hpp. References MedianAbsoluteDeviation(). Referenced by GDCPass::WLsigmaStrip(). |
|
||||||||||||||||
|
Compute median of an array of length nd; array xd is returned sorted, unless save_flag is true.
Definition at line 287 of file RobustStats.hpp. References GPSTK_RETHROW, GPSTK_THROW, and gpstk::QSort(). Referenced by MedianAbsoluteDeviation(). |
|
||||||||||||||||||||
|
Compute the median absolute deviation of a double array of length nd, as well as the median (M = Median(xd,nd)); NB this routine will trash the array xd unless save_flag is true (default).
Definition at line 367 of file RobustStats.hpp. References ABSOLUTE, GPSTK_THROW, Median(), gpstk::QSort(), and RobustTuningE. Referenced by SRIleastSquares::dataUpdate(), and MAD(). |
|
||||||||||||||||||||||||
|
Compute the m-estimate. Iteratively determine the m-estimate, which is a measure of mean or median, but is less sensitive to outliers. M is the median (M=Median(xd,nd)), and MAD is the median absolute deviation (MAD=MedianAbsoluteDeviation(xd,nd,M)). Optionally, a pointer to an array, which will contain the weights on output, may be provided.
Definition at line 430 of file RobustStats.hpp. References ABSOLUTE, GPSTK_RETHROW, GPSTK_THROW, RobustTuningT, and gpstk::sum(). Referenced by GDCPass::WLsigmaStrip(). |
|
||||||||||||||||
|
Generate data for a quantile-quantile plot. Given an array of data yd, of length nd (sorted in ascending order), and another array xd of the same length, fill the xd array with data such that (xd,yd) give a quantile-quantile plot. The distribution of yd is a normal distribution to the extent that this plot is a straight line, with y-intercept and slope identified with mean and standard deviation, respectively, of the distribution.
|
|
||||||||||||||||||||
|
Compute the quartiles Q1 and Q3 of an array of length nd. Array is assumed sorted in ascending order. Quartile are values such that one fourth of the samples are larger (smaller) than Q3(Q1).
Definition at line 336 of file RobustStats.hpp. References GPSTK_THROW. |
|
||||||||||||||||||||||||||||
|
Fit a polynomial of degree n to data xd, with independent variable td, using robust techniques. The post-fit residuals are returned in the data vector, and the computed weights in the result may be output as well. Specifically, the equation describing the fit is c0 + c[1]*t(j) + c[2]*t(j)*t(j) + ... c[n-1]*pow(t(j),n-1) = xd[j], where the zero-th coefficient and the independent variable are debiased by the first value; i.e. c0 = c[0]+xd[0] and t(j) = td[i]-td[0]. Specifically, to evaluate the polynomial at t, eval = f(t), do the following. xd0 = xd[0]; Robust::RobustPolyFit(xd,td,nd,n,c); eval = xd0+c[0]; tt = 1.0; for(j=1; j<nd; j++) { tt *= (t-td[0]); eval += c[j]*tt; }
|
|
||||||||||||||||||||
|
Print 'stem and leaf' plot of the data in the double array xd of length nd, with an optional message, on the given output ostream. It is assumed that the input array xd is sorted in ascending order.
|
1.3.9.1