Learn R Programming

intrinsicDimension (version 1.2.0)

oblongNormal: Oblong Normal Distribution

Description

Generates a sample from a certain anisotropic normal distribution centered around the origin.

Usage

oblongNormal(Ns, n)

Arguments

Ns

number of data points.

n

dimension of the distribution (and the data points).

Value

A Ns by n matrix.

Details

In the first half of the dimensions (rounded down if n is odd) the standard deviation is 1 and in the rest the standard deviation is 0.25 .

Examples

Run this code
# NOT RUN {
datap <- oblongNormal(100, 10)
par(mfrow = c(1, 2))
plot(datap[, 1], datap[, 2])
plot(datap[, 1], datap[, 6])
# }

Run the code above in your browser using DataLab