sc_striped: Measure of Discreteness

View source: R/discrete.R

sc_stripedR Documentation

Measure of Discreteness

Description

This metric computes the 1-(ratio between the number of unique values to total data values) on number of rotations of the data, and returns the smallest value. If this value is large it means that there are only a few unique data values, and hence the distribution is discrete

Usage

sc_striped(x, y)

Arguments

x

numeric vector

y

numeric vector

Value

double

Examples

data("datasaurus_dozen_wide")
sc_striped(datasaurus_dozen_wide$v_lines_x,
           datasaurus_dozen_wide$v_lines_y)
sc_striped(datasaurus_dozen_wide$dino_x,
           datasaurus_dozen_wide$dino_y)

cassowaryr documentation built on Aug. 9, 2022, 5:08 p.m.