Learn R Programming

IDmining (version 1.0.7)

Butterfly: 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\).

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<U+2013>138.

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab