Dist: Construct a distribution

Description Usage Arguments Value Examples

View source: R/dist.R

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

1
Dist(n)

Arguments

n

Vector or matrix specifying one or more time series.

Value

An initialized object of class Dist.

Examples

1
2
3
Dist(5)
Dist(c(0, 0, 3, 5, 1))
Dist(c(0.0, 0.1, 0.25, 0.25, 0.4))

rinform documentation built on April 1, 2018, 12:12 p.m.