Truncate-methods {distr}R Documentation

Methods for function Truncate in Package ‘distr’

Description

Truncate-methods

Usage

Truncate(object, ...)
## S4 method for signature 'AbscontDistribution':
Truncate(object, lower = -Inf, upper = Inf)
## S4 method for signature 'DiscreteDistribution':
Truncate(object, lower= -Inf, upper = Inf)
## S4 method for signature '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

Methods

Truncate
signature(object = "AbscontDistribution"): returns the distribution of min(upper,max(X,lower)) conditioned to lower<X<=upper, if X is distributed according to object; the result is again of class "AbscontDistribution"
Truncate
signature(object = "DiscreteDistribution"): returns the distribution of min(upper,max(X,lower)) conditioned to lower<X<=upper, if X is distributed according to object; the result is again of class "DiscreteDistribution"
Truncate
signature(object = "UnivarLebDecDistribution"): returns the distribution of min(upper,max(X,lower)) conditioned to lower<X<=upper, if X is distributed according to object; the result is again of class "UnivarLebDecDistribution"

See Also

Huberize, Minimum

Examples

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

[Package distr version 2.0.6 Index]