perturb: Perturb data by adding noise or bootstrapping

Description Usage Arguments Value Examples

Description

Perturb data by adding Gaussian noise or bootstrap resampling. Gaussian noise has mean 0 and variance 0.01*average variance of all variables.

Usage

1
perturb(data, method = 0)

Arguments

data

– data that will be perturbed.

method

– adding noise is 0 and bootstrapping is 1. Default is adding noise.

Value

the perturbed data.

Examples

1
2

OTclust documentation built on May 6, 2019, 9 a.m.