Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.85 KB

truncate.md

File metadata and controls

45 lines (36 loc) · 1.85 KB

Truncated Distributions

The package provides the truncated function which creates the most appropriate distribution to represent a truncated version of a given distribution.

A truncated distribution can be constructed using the following signature:

truncated

In the general case, this will create a Truncated{typeof(d)} structure, defined as follows:

Truncated

Many functions, including those for the evaluation of pdf and sampling, are defined for all truncated univariate distributions:

Functions to compute statistics, such as mean, mode, var, std, and entropy, are not available for generic truncated distributions. Generally, there are no easy ways to compute such quantities due to the complications incurred by truncation. However, these methods are supported for truncated normal distributions Truncated{<:Normal} which can be constructed with truncated(::Normal, ...).