PSRCHIVE
| Ask a Question | Search PSRCHIVE: |
Home
|
RobustStats.h 9// Resistance means that the methods provided are insensitive to small changes of sample; i.e. are dependent on the locust of the data and ignore outliers
10// Robustness means that the methods provided are insensitive to the assumptions about the intrinsic population
11// Efficient means that the methods provided yield maximum information that can be derived from provided data.
13// For more information, see Understanding Robust and Exploratory Data Analysis by Hoaglin et al, or Robust estimators of scale, Lax 1985
46T robust_stddev ( T * data, unsigned size, T initial_guess, T initial_guess_scale = 1.4826, T Tukey_tune = 6.0 );
118//TODO some sources say that the most efficient choice is 9 for the tuning constant. I think this is because some sources use c * MAD, while others use c * MAD * 1.4826
119//TODO IDL implementation has a slighly different estimator. I think they are attempting to get the correct assymptotic value but they are doing it wrong :) Hmm, gives the same result, I guess it's the same estimator just expressed differently.
129T robust_stddev ( T * data, unsigned size, T initial_guess, T initial_guess_scale, T Tukey_tune )
148 //cout << i_el << " " << Tukey_tune << " " << initial_guess << " " << initial_guess_scale << endl;
160 std_dev += pow ( input.at ( indices.at ( i_el ) ) - median, 2 ) * pow ( 1.0 - biweighted_sq.at( i_el ), 4 ) ;
175 * @brief convienience wrapper for robust_stddev which assumes that MAD is to be used as the initial guess for scale
STL namespace. Generated using doxygen 1.14.0
|