Butterfly: Butterfly Data Set Generator

Description Usage Arguments Value Author(s) References Examples

View source: R/Butterfly.R

Description

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

Usage

1
Butterfly(N=10000)

Arguments

N

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

Value

A N x 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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)

jeangolay/IDmining documentation built on May 6, 2021, 10:49 a.m.