Skip to contents

Determine upper class boundaries for classification of a vector with values ranging 0-1 based upon an vector of cumulative proportions.

Usage

util_calc_boundaries(x, cumulative_proportions)

Arguments

x

vector of data values.

cumulative_proportions

Vector of class cumulative proportions, as generated by w2cp.

Value

Numerical vector with boundaries for matrix classification

Examples

x <- matrix(runif(100,0,1),10,10)
y <- util_w2cp(c(0.5, 0.25, 0.25)) #cumulative proportion
util_calc_boundaries(x,y)
#> [1] 0.4663935 0.6885560 0.9970691