← All procedures

statistics.tQuantile

This function gives the quantile of the Student t law, from a bisection of its distribution function.

CLI
Package
@procedures/statistics · README
Path
["statistics","tQuantile"]
CLI
mark statistics tQuantile --p <number> --df <number>
As data
{"$proc":["statistics","tQuantile"],"input":{}}

Use it

In TypeScript

import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/statistics/register"; // registers its procedures

const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["statistics","tQuantile"], { p: 1, df: 1 });
console.log(JSON.stringify(result));

From the command line

$ mark statistics tQuantile --p <number> --df <number>

As data, in a program

{ "$proc": ["statistics", "tQuantile"], "input": { "p": 1, "df": 1 } }

Input

FieldTypeRequiredDefaultDescription
pnumberyesThe share of the law below the result, above 0 and below 1.
dfnumberyesThe degrees of freedom, above 0.

Output

The schema does not list fields (number).

JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "p": {
        "type": "number",
        "description": "The share of the law below the result, above 0 and below 1."
      },
      "df": {
        "type": "number",
        "description": "The degrees of freedom, above 0."
      }
    },
    "required": [
      "p",
      "df"
    ],
    "additionalProperties": false
  },
  "output": {
    "type": "number"
  }
}