Select random sample of data with replacement. More...
#include <vnl/vnl_vector.h>Go to the source code of this file.
Functions | |
| void | pdf1d_resample (vnl_vector< double > &x, const vnl_vector< double > &d, int ns=0) |
| Fill x with ns samples drawn at random from d. | |
| void | pdf1d_resample (vnl_vector< double > &x, const double *d, int n, int ns=0) |
| Fill x with ns samples drawn at random from d[0..n-1]. | |
Select random sample of data with replacement.
Definition in file pdf1d_resample.h.
| void pdf1d_resample | ( | vnl_vector< double > & | x, |
| const vnl_vector< double > & | d, | ||
| int | ns | ||
| ) |
Fill x with ns samples drawn at random from d.
If ns not specified (or zero) then draw d.size() samples from d
Fill x with ns samples drawn at random from d.
If n not specified (or zero) then draw d.size() samples from d
Definition at line 15 of file pdf1d_resample.cxx.
| void pdf1d_resample | ( | vnl_vector< double > & | x, |
| const double * | d, | ||
| int | n, | ||
| int | ns | ||
| ) |
Fill x with ns samples drawn at random from d[0..n-1].
If ns not specified (or zero) then draw d.size() samples from d
Definition at line 22 of file pdf1d_resample.cxx.
1.7.5.1