openGPMP
Open Source Mathematics Package
|
A class providing various resampling methods for statistical analysis. More...
#include <resampling.hpp>
Static Public Member Functions | |
static std::vector< int > | bootstrap (const std::vector< int > &data, int numSamples) |
Perform bootstrap resampling. More... | |
static std::vector< int > | subsample (const std::vector< int > &data, int numSamples) |
Perform subsampling. More... | |
static std::vector< std::vector< int > > | jackknife (const std::vector< int > &data) |
Perform jackknife resampling. More... | |
static std::vector< std::vector< int > > | permutation_test (const std::vector< int > &data, int numPermutations) |
Perform permutation test. More... | |
static std::vector< double > | bootstrap_t (const std::vector< double > &data, int numSamples) |
Perform bootstrap t-statistic resampling. More... | |
static std::pair< double, double > | bootstrap_ci (const std::vector< double > &data, double alpha, int numSamples) |
Calculate confidence interval using bootstrap. More... | |
static std::vector< double > | smoothed_bootstrap (const std::vector< double > &data, int numSamples) |
Perform smoothed bootstrap resampling. More... | |
static std::vector< double > | circular_block_bootstrap (const std::vector< double > &data, int blockSize, int numSamples) |
Perform circular block bootstrap resampling. More... | |
static std::vector< double > | time_series_bootstrap (const std::vector< double > &data, int numSamples) |
Perform time series bootstrap resampling. More... | |
static std::vector< double > | weighted_bootstrap (const std::vector< double > &data, const std::vector< double > &weights, int size) |
Perform weighted bootstrap resampling. More... | |
static double | permutation_p_value (const std::vector< double > &data1, const std::vector< double > &data2, double observedStatistic) |
Calculate the p-value using permutation test. More... | |
A class providing various resampling methods for statistical analysis.
Definition at line 48 of file resampling.hpp.
|
static |
Perform bootstrap resampling.
data | The original data |
numSamples | The number of bootstrap samples |
Definition at line 40 of file resampling.cpp.
|
static |
Calculate confidence interval using bootstrap.
data | The original data |
alpha | The significance level |
numSamples | The number of bootstrap samples |
Definition at line 137 of file resampling.cpp.
|
static |
Perform bootstrap t-statistic resampling.
data | The original data |
numSamples | The number of bootstrap samples |
Definition at line 111 of file resampling.cpp.
|
static |
Perform circular block bootstrap resampling.
data | The original data |
blockSize | The size of each block |
numSamples | The number of bootstrap samples |
Definition at line 171 of file resampling.cpp.
|
static |
Perform jackknife resampling.
data | The original data |
Definition at line 77 of file resampling.cpp.
|
static |
Calculate the p-value using permutation test.
data1 | The first data set |
data2 | The second data set |
observedStatistic | The observed test statistic |
Definition at line 247 of file resampling.cpp.
|
static |
Perform permutation test.
data | The original data |
numPermutations | The number of permutations |
Definition at line 93 of file resampling.cpp.
|
static |
Perform smoothed bootstrap resampling.
data | The original data |
numSamples | The number of bootstrap samples |
Definition at line 150 of file resampling.cpp.
|
static |
Perform subsampling.
data | The original data |
numSamples | The number of subsamples |
Definition at line 58 of file resampling.cpp.
|
static |
Perform time series bootstrap resampling.
data | The original time series data |
numSamples | The number of bootstrap samples |
Definition at line 208 of file resampling.cpp.
|
static |
Perform weighted bootstrap resampling.
data | The original data |
weights | The weights associated with each data point |
size | The size of each bootstrap sample |
Definition at line 233 of file resampling.cpp.