Truncate-methods

0th

Percentile

Methods for function Truncate in Package `distr'

Truncate-methods

Keywords
methods, distribution
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 'LatticeDistribution':
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

Aliases
  • Truncate-methods
  • Truncate
  • Truncate,AbscontDistribution-method
  • Truncate,DiscreteDistribution-method
  • Truncate,LatticeDistribution-method
  • Truncate,UnivarLebDecDistribution-method
Examples
plot(Truncate(Norm(),lower=-1,upper=2))
TN <- Truncate(Norm(),lower=15,upper=15.7) ### remarkably right!
plot(TN)
r(TN)(30)
TNG <- Truncate(Geom(prob=0.05),lower=325,upper=329) ### remarkably right!
plot(TNG)
Documentation reproduced from package distr, version 2.3.1, License: LGPL-3

Community examples

Looks like there are no examples yet.