type parameter to choose the specific statistic, and 20 individual endpoints organized by operation. All endpoints accept a single input matrix a and the full set of common request parameters.
The sample matrix below is used throughout the examples on this page:
Combined endpoint
Use this endpoint to compute any statistic by setting thetype field.
POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics
Parameters
"all", "row-min", "col-min", "mat-min", "row-max", "col-max", "mat-max", "row-sum", "col-sum", "mat-sum", "row-mean", "col-mean", "mat-mean", "row-median", "col-median", "mat-median", "row-var", "col-var", "mat-var", "row-std", "col-std", "mat-std".Pass "all" to compute and return every statistic in a single response."lite", "standard", or "detailed"."html", "latex", or "speech".null for full precision.decimals rounding to intermediate step values.Example — compute all statistics
Individual endpoints
The individual endpoints are grouped below by operation type. For all endpoints,a is the only operation-specific parameter; all other parameters are the common request parameters.
The base path for all individual endpoints is:
/api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/
Min and max
POST .../row-min — minimum of each row
POST .../row-min — minimum of each row
a.POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/row-min"lite", "standard", or "detailed".POST .../col-min — minimum of each column
POST .../col-min — minimum of each column
a.POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/col-min"lite", "standard", or "detailed".POST .../mat-min — minimum of the entire matrix
POST .../mat-min — minimum of the entire matrix
a.POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/mat-min"lite", "standard", or "detailed".POST .../row-max — maximum of each row
POST .../row-max — maximum of each row
a.POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/row-max"lite", "standard", or "detailed".POST .../col-max — maximum of each column
POST .../col-max — maximum of each column
a.POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/col-max"lite", "standard", or "detailed".POST .../mat-max — maximum of the entire matrix
POST .../mat-max — maximum of the entire matrix
a.POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/mat-max"lite", "standard", or "detailed".Sum and mean
POST .../row-sum — sum of each row
POST .../row-sum — sum of each row
a.POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/row-sum"lite", "standard", or "detailed".POST .../col-sum — sum of each column
POST .../col-sum — sum of each column
a.POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/col-sum"lite", "standard", or "detailed".POST .../mat-sum — sum of all elements
POST .../mat-sum — sum of all elements
POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/mat-sum"lite", "standard", or "detailed".POST .../row-mean — mean of each row
POST .../row-mean — mean of each row
a.POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/row-mean"lite", "standard", or "detailed".POST .../col-mean — mean of each column
POST .../col-mean — mean of each column
a.POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/col-mean"lite", "standard", or "detailed".POST .../mat-mean — mean of all elements
POST .../mat-mean — mean of all elements
POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/mat-mean"lite", "standard", or "detailed".Median
POST .../row-median — median of each row
POST .../row-median — median of each row
a.POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/row-median"lite", "standard", or "detailed".[8, 3, 6, 5], the sorted order is [3, 5, 6, 8], so the median is (5 + 6) / 2 = 5.5.POST .../col-median — median of each column
POST .../col-median — median of each column
a.POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/col-median"lite", "standard", or "detailed".POST .../mat-median — median of all elements
POST .../mat-median — median of all elements
POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/mat-median"lite", "standard", or "detailed".Variance and standard deviation
POST .../row-var — variance of each row
POST .../row-var — variance of each row
a.POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/row-var"lite", "standard", or "detailed".POST .../col-var — variance of each column
POST .../col-var — variance of each column
a.POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/col-var"lite", "standard", or "detailed".POST .../mat-var — variance of all elements
POST .../mat-var — variance of all elements
POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/mat-var"lite", "standard", or "detailed".POST .../row-std — standard deviation of each row
POST .../row-std — standard deviation of each row
a.POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/row-std"lite", "standard", or "detailed".POST .../col-std — standard deviation of each column
POST .../col-std — standard deviation of each column
a.POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/col-std"lite", "standard", or "detailed".POST .../mat-std — standard deviation of all elements
POST .../mat-std — standard deviation of all elements
POST /api/v1/mathematics/linear-algebra/matrix-operations/matrix-statistics/mat-std"lite", "standard", or "detailed".