sample2Support: Guesses the support from a sample

View source: R/helpers.R

sample2SupportR Documentation

Guesses the support from a sample

Description

A support is a range plus possible points with positive probability. The function detects them by bindings.

Usage

sample2Support(X, digits = 1, minBindings = max(length(X)/50, 3))

Arguments

X

a numerical vector with sample data

digits

the number of digits infered boundaries should be rounded to.

minBindings

the minimum number of equal values required to consider them as a value with positive measure.

Value

a Support object

See Also

Other Support: Support(), cdf2Support(), pdf2Support(), plotFuncs()

Examples

sample2Support(rnorm(400))
sample2Support(runif(1000))
sample2Support(rlnorm(400))
sample2Support(rpois(400,2))
sample2Support(c(rlnorm(200),rep(0,30)))



DistributionalDDA documentation built on Oct. 20, 2026, 5:06 p.m.