Packages

object Quantile extends Error

The Quantile object contains methods for computing 'Finv', the "inverse" Cumulative Distribution Functions (iCDF's) for popular sampling distributions: StandardNormal, StudentT, ChiSquare and Fisher. For a given CDF 'F' and probability/quantile 'p', compute 'x' such that 'F(x) = p'. The iCDF may be thought of as giving value of 'x' for which the area under the curve from -infinity to 'x' of the probability density function (pdf) is equal to 'p'.

Linear Supertypes
Error, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Quantile
  2. Error
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def check(p: Double, x_min: Double = NEGATIVE_INFINITY): (Boolean, Double)

    Check whether the probability 'p' is out of range (giving NaN) or extreme, either close to 0 (giving -infinity) or 1 (giving +infinity).

    Check whether the probability 'p' is out of range (giving NaN) or extreme, either close to 0 (giving -infinity) or 1 (giving +infinity). Return (true, special-value) for these cases.

    p

    the p-th quantile, e.g., .95 (95%)

    x_min

    the smallest value in the distribution's domain

  6. def chiSquareInv(p: Double, df: Int): Double

    Compute the 'p'-th quantile for "ChiSquare distribution" function.

    Compute the 'p'-th quantile for "ChiSquare distribution" function.

    p

    the p-th quantile, e.g., .95 (95%)

    df

    the degrees of freedom

  7. def chiSquareInv(p: Double = .95, pr: Parameters = null): Double

    Compute the 'p'-th quantile for "ChiSquare distribution" function using bisection search of the CDF.

    Compute the 'p'-th quantile for "ChiSquare distribution" function using bisection search of the CDF. FIX: need a faster algorithm

    p

    the p-th quantile, e.g., .95 (95%)

    pr

    parameter for the degrees of freedom

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. def empiricalInv(p: Double, data: Parameters): Double

    Compute the 'p'-th quantile for the Empirical distribution function.

    Compute the 'p'-th quantile for the Empirical distribution function.

    p

    the p-th quantile, e.g., .95 (95%)

    data

    parameters as data

  10. def empiricalInv(p: Double, eCDF: (VectorD, VectorD)): Double

    Compute the 'p'-th quantile for the Empirical distribution function.

    Compute the 'p'-th quantile for the Empirical distribution function.

    p

    the p-th quantile, e.g., .95 (95%)

    eCDF

    the empirical CDF

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def exponentialInv(p: Double, pr: Parameters = null): Double

    Compute the 'p'-th quantile for the Exponential distribution function.

    Compute the 'p'-th quantile for the Exponential distribution function.

    p

    the p-th quantile, e.g., .95 (95%)

    pr

    parameter for the rate

  14. def fisherInv(p: Double, df: (Int, Int)): Double

    Compute the 'p'-th quantile for "Fisher (F) distribution" function.

    Compute the 'p'-th quantile for "Fisher (F) distribution" function.

    p

    the p-th quantile, e.g., .95 (95%)

    df

    the pair of degrees of freedom ('df1' and 'df2')

  15. def fisherInv(p: Double = .95, pr: Parameters = null): Double

    Compute the 'p'-th quantile for "Fisher (F) distribution" function using bisection search of the CDF.

    Compute the 'p'-th quantile for "Fisher (F) distribution" function using bisection search of the CDF. FIX: need a faster algorithm

    p

    the p-th quantile, e.g., .95 (95%)

    pr

    parameters for the degrees of freedom (numerator, denominator)

  16. final def flaw(method: String, message: String): Unit
    Definition Classes
    Error
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def normalInv(p: Double = .95, pr: Parameters = null): Double

    Compute the 'p'-th quantile for the "standard normal distribution" function.

    Compute the 'p'-th quantile for the "standard normal distribution" function.

    p

    the p-th quantile, e.g., .95 (95%)

    pr

    parameter for the distribution (currently not used)

    See also

    home.online.no/~pjacklam/notes/invnorm/impl/sprouse/ltqnorm.c -------------------------------------------------------------------------

  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. def studentTInv(p: Double, df: Int): Double

    Compute the 'p'-th quantile for "Student's t" distribution function.

    Compute the 'p'-th quantile for "Student's t" distribution function.

    p

    the p-th quantile, e.g., 95 (95%)

    df

    the degrees of freedom

  25. def studentTInv(p: Double = .95, pr: Parameters = null): Double

    Compute the 'p'-th quantile for "Student's t" distribution function.

    Compute the 'p'-th quantile for "Student's t" distribution function.

    p

    the p-th quantile, e.g., 95 (95%)

    pr

    parameter for the degrees of freedom

    See also

    wp.csiro.au/alanmiller/toms/cacm396.f90 -------------------------------------------------------------------------

  26. def studentTInv2(p: Double = .95, pr: Parameters = null): Double

    Compute the 'p'-th quantile for "Student's t" distribution function.

    Compute the 'p'-th quantile for "Student's t" distribution function. This algorithm is less accurate than the one above. ------------------------------------------------------------------------- It is a transliteration of the 'STUDTP' function given in Appendix C

    p

    the p-th quantile, e.g., 95 (95%)

    pr

    parameter for the degrees of freedom

    See also

    "Principles of Discrete Event Simulation", G. S. Fishman, Wiley, 1978. -------------------------------------------------------------------------

  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. def uniformInv(p: Double, pr: Parameters = null): Double

    Compute the 'p'-th quantile for the Uniform distribution function.

    Compute the 'p'-th quantile for the Uniform distribution function.

    p

    the p-th quantile, e.g., .95 (95%)

    pr

    parameters for the end-points of the Uniform distribution

  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Error

Inherited from AnyRef

Inherited from Any

Ungrouped