32 #ifndef RESAMPLING_HPP 
   33 #define RESAMPLING_HPP 
   56     static std::vector<int> 
bootstrap(
const std::vector<int> &data,
 
   65     static std::vector<int> 
subsample(
const std::vector<int> &data,
 
   73     static std::vector<std::vector<int>>
 
   82     static std::vector<std::vector<int>>
 
   91     static std::vector<double> 
bootstrap_t(
const std::vector<double> &data,
 
  102     static std::pair<double, double>
 
  103     bootstrap_ci(
const std::vector<double> &data, 
double alpha, 
int numSamples);
 
  111     static std::vector<double>
 
  121     static std::vector<double>
 
  132     static std::vector<double>
 
  142     static std::vector<double>
 
  144                        const std::vector<double> &weights,
 
  155                                       const std::vector<double> &data2,
 
  156                                       double observedStatistic);
 
A class providing various resampling methods for statistical analysis.
static std::vector< double > bootstrap_t(const std::vector< double > &data, int numSamples)
Perform bootstrap t-statistic resampling.
static std::vector< double > circular_block_bootstrap(const std::vector< double > &data, int blockSize, int numSamples)
Perform circular block bootstrap resampling.
static std::vector< double > smoothed_bootstrap(const std::vector< double > &data, int numSamples)
Perform smoothed bootstrap resampling.
static std::vector< double > weighted_bootstrap(const std::vector< double > &data, const std::vector< double > &weights, int size)
Perform weighted bootstrap resampling.
static std::vector< int > subsample(const std::vector< int > &data, int numSamples)
Perform subsampling.
static std::vector< double > time_series_bootstrap(const std::vector< double > &data, int numSamples)
Perform time series bootstrap resampling.
static double permutation_p_value(const std::vector< double > &data1, const std::vector< double > &data2, double observedStatistic)
Calculate the p-value using permutation test.
static std::vector< std::vector< int > > jackknife(const std::vector< int > &data)
Perform jackknife resampling.
static std::vector< std::vector< int > > permutation_test(const std::vector< int > &data, int numPermutations)
Perform permutation test.
static std::pair< double, double > bootstrap_ci(const std::vector< double > &data, double alpha, int numSamples)
Calculate confidence interval using bootstrap.
static std::vector< int > bootstrap(const std::vector< int > &data, int numSamples)
Perform bootstrap resampling.
The source C++ openGPMP namespace.