discretize {minet} | R Documentation

## Unsupervized Data Discretization

### Description

`discretize` discretizes `data` using the equal frequencies or equal width binning algorithm.

### Usage

    discretize( data,disc="equalfreq",nbins=sqrt(nrow(data)) )

### Arguments

`data` | A data.frame containing data to be discretized. The columns contains variables and the rows samples.
`disc` | The name of the discretization method to be used :"equalfreq" or "equalwidth" (default : "equalfreq") - see references.
`nbins` | Integer specifying the number of bins to be used for the discretization. By default the number of bins is set to sqrt(N) where N is the number of samples.

### Value

`discretize` returns the discretized dataset.

### Author(s)

Patrick E. Meyer, Frederic Lafitte, Gianluca Bontempi

### References

Supervised and unsupervised discretization of continuous features. J.Dougherty, R. Kohavi, M. Sahami. ICML, 1995.

### See Also

`build.mim`

### Examples

    data(syn.data)
    ew.data <- discretize(syn.data,"equalwidth")
    ef.data <- discretize(syn.data,"equalfreq")

[Package minet version 1.4.0 Index]