Butterfly {IDmining}R Documentation

Butterfly Data Set Generator

Description

Generates a random simulation of the butterfly data set with a given number of points.

Usage

Butterfly(N=10000)

Arguments

N

The number of points to be generated (by default: N = 10000).

Value

A N \times 9 data.frame. The first eight columns are the input variables, and the last one is the output (or target) variable Y.

Author(s)

Jean Golay jeangolay@gmail.com

References

J. Golay, M. Leuenberger and M. Kanevski (2016). Feature selection for regression problems based on the Morisita estimator of intrinsic dimension, Pattern Recognition 70:126–138.

Examples

bf <- Butterfly(1000)

## Not run: 
require(colorRamps)
require(rgl)

c <- cut(bf$Y,breaks=64)
cols <- matlab.like(64)[as.numeric(c)]

plot3d(bf$X1,bf$X2,bf$Y,col=cols,radius=0.10,type="s",
       xlab="",ylab="",zlab="",box=F)
axes3d(lwd=3,cex.axis=3)
grid3d(c("x+","y-","z"),col="black",lwd=1)

## End(Not run)

[Package IDmining version 1.0.7 Index]