q-methods {distr} | R Documentation |
Methods for Function q in Package ‘distr’
Description
q-methods
Methods
- q
signature(save = "Distribution")
: returns the (left-continuous) quantile function, i.e.;{\rm q}(s)=\inf\{t \,\big|\, P({\tt object}\leq t)\geq s\}
- q.l
signature(object = "Distribution")
: from distr-2.6 onwards, we provide this as a synonym for methodq
; this synonym more explicitely states that we are dealing with the left-continuous variant of a quantile function. It is useful in particular when used from the console in RStudio, as RStudio catches calls toq()
and treats them separately from usual R evaluation. The developers of RStudio have been asked to fix this and comply with standard R evaluation which explicitely allows overloadingq()
as we do it in this package, but so far have refused to do so, as they claim overloadingq()
was insane.
See Also
Distribution-class
, q.r
Examples
require(distr)
N <- Norm()
q(N)(0.3)
## in RStudio or Jupyter IRKernel, use q.l(.)(.) instead of q(.)(.)
q.l(N)(0.3)