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;
Ditto, with location and scale parameters (by standardizing x).