import mir.test: shouldApprox; studentsTPDF(-3.0, 5).shouldApprox == 0.01729258; studentsTPDF(-2.0, 5).shouldApprox == 0.06509031; studentsTPDF(-1.0, 5).shouldApprox == 0.2196798; studentsTPDF(0.0, 5).shouldApprox == 0.3796067; studentsTPDF(1.0, 5).shouldApprox == 0.2196798; studentsTPDF(2.0, 5).shouldApprox == 0.06509031; studentsTPDF(3.0, 5).shouldApprox == 0.01729258; // Can include location/scale studentsTPDF(-3.0, 5, 1, 2).shouldApprox == 0.06509031; studentsTPDF(-2.0, 5, 1, 2).shouldApprox == 0.1245173; studentsTPDF(-1.0, 5, 1, 2).shouldApprox == 0.2196798; studentsTPDF(0.0, 5, 1, 2).shouldApprox == 0.3279185; studentsTPDF(1.0, 5, 1, 2).shouldApprox == 0.3796067; studentsTPDF(2.0, 5, 1, 2).shouldApprox == 0.3279185; studentsTPDF(3.0, 5, 1, 2).shouldApprox == 0.2196798;
Ditto, with location and scale parameters (by standardizing x).