Learn R Programming

rSFA (version 1.00)

addNoisyCopies: Add noisy copies for parametric bootstrap

Description

Given training data X with true labels REALCLASS, add new records to X and REALCLASS, which are noisy copies of the training data.

Usage

addNoisyCopies(realclass, x, pars)

Arguments

x
a matrix containing the training data
realclass
true class of training data (can be vector, numerics, integers, factors)
pars
list of parameters: pars$ncopies: Number of new records to add pars$ncsort: Defines if training data should be sorted by class. Default is FALSE pars$ncsigma: The noise in each column of x has the std.dev

Value

  • list res - res contains two list entries: realclass and x (including added copies)

References

sfaPBootstrap