The OpenD Programming Language

studentsTCCDF

Ditto, with location and scale parameters (by standardizing x).

  1. T studentsTCCDF(T x, T nu)
  2. T studentsTCCDF(T x, T nu, T mean, T stdDev)
    @safe pure nothrow @nogc
    T
    studentsTCCDF
    (
    T
    )
    (
    const T x
    ,
    const T nu
    ,
    const T mean
    ,
    const T stdDev
    )
    if (
    isFloatingPoint!T
    )

Parameters

x T

value to evaluate CCDF

nu T

degrees of freedom

mean T

location parameter

stdDev T

scale parameter

Examples

import mir.test: shouldApprox;

studentsTCCDF(-3.0, 5).shouldApprox == 0.9849504;
studentsTCCDF(-2.0, 5).shouldApprox == 0.9490303;
studentsTCCDF(-1.0, 5).shouldApprox == 0.8183913;
studentsTCCDF(0.0, 5).shouldApprox == 0.5;
studentsTCCDF(1.0, 5).shouldApprox == 0.1816087;
studentsTCCDF(2.0, 5).shouldApprox == 0.05096974;
studentsTCCDF(3.0, 5).shouldApprox == 0.01504962;

// Can include location/scale
studentsTCCDF(-3.0, 5, 1, 2).shouldApprox == 0.9490303;
studentsTCCDF(-2.0, 5, 1, 2).shouldApprox == 0.9030482;
studentsTCCDF(-1.0, 5, 1, 2).shouldApprox == 0.8183913;
studentsTCCDF(0.0, 5, 1, 2).shouldApprox == 0.6808506;
studentsTCCDF(1.0, 5, 1, 2).shouldApprox == 0.5;
studentsTCCDF(2.0, 5, 1, 2).shouldApprox == 0.3191494;
studentsTCCDF(3.0, 5, 1, 2).shouldApprox == 0.1816087;

Meta