Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


rinform (version 1.0.2)

Dist: Construct a distribution

Description

If the parameter n is an integer, the distribution is constructed with a zeroed support of size n. If n is a vector of integer values, the sequence is treated as the underlying support. On the other hand, if n is a vector of floating point values, it is treated as a probability distribution and must sum to unity. Note, if a probability distribution is given as the underlying support, it will first be converted to a histogram with a precision of 9 significant figures.

Usage

Dist(n)

Arguments

n

Vector or matrix specifying one or more time series.

Value

An initialized object of class Dist.

Examples

Run this code
# NOT RUN {
Dist(5)
Dist(c(0, 0, 3, 5, 1))
Dist(c(0.0, 0.1, 0.25, 0.25, 0.4))
# }

Run the code above in your browser using DataLab