<< covjack Resampling stdboot >>

Stixbox >> Stixbox > Resampling > rboot

rboot

Simulate a bootstrap resample

Calling Sequence

z=rboot(x)
z=rboot(x,b)

Parameters

x :

a nrows-by-ncols matrix of doubles

b :

a 1-by-1 matrix of doubles, the number of bootstrap resamples (default b=1)

z :

a nrows-by-(ncols*b) matrix of doubles

Description

rboot(x) gives a resample of x.

rboot(x,b) gives b columns of resamples. This form works only for x one-dimensional, ie x column vector.

If x is a row vector, it is converted into a column vector.

If x is a matrix, the resamples are stored in the columns of z:

z=[z1,z2,...,zb]
where zi is a nrows-by-ncols matrix of doubles, for i=1,2,...,b.

Examples

// With x column vector
x=distfun_chi2rnd(3,10,1)
z=rboot(x)
// Get 3 resamples
z=rboot(x,3)

// With a x matrix
x=distfun_chi2rnd(3,10,3)
z=rboot(x)
// Get 3 resamples
z=rboot(x,3)

Authors


Report an issue
<< covjack Resampling stdboot >>