cvtype.image: Generating test dataset index of two-dimensional data for...

Description Usage Arguments Details Value See Also Examples

Description

This function generates test dataset index of two-dimensional data for cross-validation

Usage

1
cvtype.image(n, cv.bsize=c(1,1), cv.kfold)

Arguments

n

the size of image

cv.bsize

two-dimensional block size of cross-validation

cv.kfold

the number of fold of cross-validation

Details

This function provides indexes of two-dimensional cross-validation scheme. Only random cross-validation scheme is provided.

Value

Two matrix representing test dataset index of each dimension for cross-validation.

cv.index1

each row is test dataset index of one dimension

cv.index2

each row is test dataset index of the other dimension

See Also

cvtype, cvwavelet, cvimpute.by.wavelet,

cvwavelet.after.impute, cvwavelet.image,

cvimpute.image.by.wavelet, cvwavelet.image.after.impute

Examples

1
2
# Two-dimensional 4-fold cross-validation with block size 2*2
out <- cvtype.image(n=c(256,256), cv.bsize=c(2,2), cv.kfold=4)


Search within the CVThresh package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.