distr_to_set {DEXiR} | R Documentation |
Convert a DEXi value distribution to a DEXi value set.
distr_to_set(distr, eps = .Machine$double.eps)
distr |
An S3 object of class |
eps |
A numeric value representing the threshold value of |
A numeric vector determined as which(distr > eps)
. Notice that distr_to_set
is generally a lossy conversion, so that multiple different distr
s are converted to the same sets.
DEXiR-package, distribution, set_to_distr()
distr_to_set(distribution(0.2, 0, 0.5, 0.3))
distr_to_set(distribution(0.1, 0, 0.7, 0.2))
distr_to_set(distribution(0.1, 0, 0.7, 0.2), eps = 0.5)