discretize3d.uniform_frequency: Discretize three sets of continuous data into 3-dimensional...

Description Usage Arguments Details Value Examples

View source: R/discretization.plugin.R

Description

discretize3d.uniform_frequency assigns the observations of three continuous random variables to bins according to the "uniform frequency" method, and returns a corresponding 3-dimensional count table.

Usage

1

Arguments

x

a numeric vector of the first random variable.

y

a numeric vector of the second random variable.

z

a numeric vector of the third random variable.

Details

Uniform frequency-based method ("uniform_frequency") divides the continuous data into N bins with (approximate) equal count number. The number of bins N is initialized into a round-off value according to the square root of the data size.

Value

discretize3d.uniform_frequency returns a 3-dimensional count table.

Examples

1
2
3
4
5
6
7
# three numeric vectors corresponding to three continuous random variables
x <- c(0.0, 0.2, 0.2, 0.7, 0.9, 0.9, 0.9, 0.9, 1.0)
y <- c(1.0, 2.0,  12, 8.0, 1.0, 9.0, 0.0, 3.0, 9.0)
z <- c(3.0, 7.0, 2.0,  11,  10,  10,  14, 2.0,  11)

# corresponding joint count table estimated by "uniform frequency" algorithm
discretize3d.uniform_frequency(x,y,z)

Informeasure documentation built on Nov. 8, 2020, 7:20 p.m.