getDataRotHyp2: Generates data of "rotating hyperplane" example.

Description Usage Arguments Value Examples

Description

Generates data of "rotating hyperplane" example.

Usage

1
getDataRotHyp2(angle, n.obs = 1, time)

Arguments

angle

[numeric(1)]
Rotation angle of the hyperplane in relation to the x axis (clockwise).

n.obs

[numeric(1)]
Number of observations to draw from the "concept" (distribution).

time

[numeric]
The time stamp to attach to the data. If missing, it's the "angle" argument.

Value

[list]

Examples

1
2
3
set.seed(1909)
dat <- getDataRotHyp2(45, 100)
plot(dat$x, col = dat$class)

aschersleben/NBCD documentation built on May 12, 2019, 4:32 a.m.