distr (version 2.0.1)

Truncate-methods: Methods for function Truncate in Package `distr'

Description

Truncate-methods

Usage

Truncate(object, ...)
## S3 method for class 'AbscontDistribution':
Truncate(object, lower = -Inf, upper = Inf)
## S3 method for class 'DiscreteDistribution':
Truncate(object, lower= -Inf, upper = Inf)
## S3 method for class 'UnivarLebDecDistribution':
Truncate(object, lower = -Inf, upper = Inf, 
                    withSimplify = getdistrOption("simplifyD"))

Arguments

object
distribution object
...
not yet used; takes up lower, upper, withSimplify.
lower
numeric; lower truncation point
upper
numeric; upper truncation point
withSimplify
logical; is result to be piped through a call to simplifyD?

Value

  • the corresponding distribution of the truncated random variable

concept

truncation

See Also

Huberize, Minimum

Examples

Run this code
plot(Truncate(Norm(),lower=-1,upper=2))

Run the code above in your browser using DataCamp Workspace