addNoise: Add Noise to Data Set

Description Usage Arguments Value Author(s) Examples

Description

Embeds the data in n dimensions and adds normal isotropic noise to the data set. Hence n has to be at least equal to the dimension (the number of columns) of the data set, otherwise the function terminates with an error.

Usage

1

Arguments

data

data set. Each row corresponds to a data point.

n

dimension of noise.

sd

standard deviation of noise. The covariance matrix of the noise is sd^2*I.

Value

Matrix of same size as data.

Author(s)

Kerstin Johnsson, Lund University

Examples

1
2
3
4
5
datap <- hyperCubeEdges(100, 1, 2)
datap <- addNoise(datap, 3, .05)
par(mfrow = c(1, 2))
plot(datap[, 1], datap[, 2])
plot(datap[, 1], datap[, 3])

intrinsicDimension documentation built on June 7, 2019, 5:02 p.m.