Learn R Programming

intrinsicDimension (version 1.2.0)

cornerPlane: Corner Plane

Description

Generates a sample from a uniform distribution on a bent plane. Half of the plane is in the xz-plane and half of the plane is bent over the x-axis, so that the resulting surface has an edge along the x-axis.

Usage

cornerPlane(Ns, theta = pi/4)

Arguments

Ns

number of data points.

theta

angle at the x-axis.

Value

A Ns x 3 matrix with columns x, y and z.

Examples

Run this code
# NOT RUN {
datap <- cornerPlane(400)
par(mfrow = c(1, 2))
plot(datap[,1], datap[,2])
plot(datap[,1], datap[,3])
# }

Run the code above in your browser using DataLab