Statistics
Class for statistical processing for Matrix
class.
- These methods can be used in the
Matrix
method chain. - This class cannot be called directly.
Static Method Summary
Static Public Methods | ||
public static |
corrcoef(x: KMatrixInputData, y_or_type: KStatisticsSettings | KMatrixInputData, type: KStatisticsSettings): Matrix Correlation matrix or Correlation coefficient. |
|
public static |
cov(x: KMatrixInputData, y_or_type: KStatisticsSettings | KMatrixInputData, type: KStatisticsSettings): Matrix Covariance matrix or Covariance value. |
|
public static |
geomean(x: KMatrixInputData, type: KStatisticsSettings): Matrix Geometric mean. |
|
public static |
mad(x: KMatrixInputData, algorithm: string | ?number, type: KStatisticsSettings): Matrix Mean absolute deviation. |
|
public static |
max(x: KMatrixInputData, type: KStatisticsSettings): Matrix Maximum number. |
|
public static |
mean(x: KMatrixInputData, type: KStatisticsSettings): Matrix Arithmetic average. |
|
public static |
median(x: KMatrixInputData, type: KStatisticsSettings): Matrix Median. |
|
public static |
min(x: KMatrixInputData, type: KStatisticsSettings): Matrix Minimum number. |
|
public static |
mode(x: KMatrixInputData, type: KStatisticsSettings): Matrix Mode. |
|
public static |
moment(x: KMatrixInputData, nth_order: number, type: KStatisticsSettings): Matrix Moment. |
|
public static |
prod(x: KMatrixInputData, type: KStatisticsSettings): Matrix Product of array elements. |
|
public static |
skewness(x: KMatrixInputData, type: KStatisticsSettings): Matrix Skewness. |
|
public static |
sort(x: KMatrixInputData, order: string, type: KStatisticsSettings): Matrix Sort. |
|
public static |
standardization(x: KMatrixInputData, type: KStatisticsSettings): Matrix The samples are standardize to a mean value of 0, standard deviation of 1. |
|
public static |
std(x: KMatrixInputData, type: KStatisticsSettings): Matrix Standard deviation. |
|
public static |
sum(x: KMatrixInputData, type: KStatisticsSettings): Matrix Sum. |
|
public static |
var(x: KMatrixInputData, type: KStatisticsSettings): Matrix Variance. |
Static Public Methods
public static corrcoef(x: KMatrixInputData, y_or_type: KStatisticsSettings | KMatrixInputData, type: KStatisticsSettings): Matrix source
Correlation matrix or Correlation coefficient.
- Get a correlation matrix from 1 matrix.
- Get a correlation coefficient from 2 vectors.
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
y_or_type | KStatisticsSettings | KMatrixInputData |
|
|
type | KStatisticsSettings |
|
public static cov(x: KMatrixInputData, y_or_type: KStatisticsSettings | KMatrixInputData, type: KStatisticsSettings): Matrix source
Covariance matrix or Covariance value.
- Get a variance-covariance matrix from 1 matrix.
- Get a covariance from 2 vectors.
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
y_or_type | KStatisticsSettings | KMatrixInputData |
|
|
type | KStatisticsSettings |
|
public static geomean(x: KMatrixInputData, type: KStatisticsSettings): Matrix source
Geometric mean.
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
type | KStatisticsSettings |
|
public static mad(x: KMatrixInputData, algorithm: string | ?number, type: KStatisticsSettings): Matrix source
Mean absolute deviation.
- The "algorithm" can choose "0/mean"(default) and "1/median".
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
algorithm | string | ?number |
|
|
type | KStatisticsSettings |
|
public static max(x: KMatrixInputData, type: KStatisticsSettings): Matrix source
Maximum number.
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
type | KStatisticsSettings |
|
public static mean(x: KMatrixInputData, type: KStatisticsSettings): Matrix source
Arithmetic average.
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
type | KStatisticsSettings |
|
public static median(x: KMatrixInputData, type: KStatisticsSettings): Matrix source
Median.
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
type | KStatisticsSettings |
|
public static min(x: KMatrixInputData, type: KStatisticsSettings): Matrix source
Minimum number.
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
type | KStatisticsSettings |
|
public static mode(x: KMatrixInputData, type: KStatisticsSettings): Matrix source
Mode.
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
type | KStatisticsSettings |
|
public static moment(x: KMatrixInputData, nth_order: number, type: KStatisticsSettings): Matrix source
Moment.
- Moment of order n. Equivalent to the definition of variance at 2.
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
nth_order | number | ||
type | KStatisticsSettings |
|
public static prod(x: KMatrixInputData, type: KStatisticsSettings): Matrix source
Product of array elements.
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
type | KStatisticsSettings |
|
public static skewness(x: KMatrixInputData, type: KStatisticsSettings): Matrix source
Skewness.
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
type | KStatisticsSettings |
|
public static sort(x: KMatrixInputData, order: string, type: KStatisticsSettings): Matrix source
Sort.
- The "order" can choose "ascend"(default) and "descend".
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
order | string |
|
|
type | KStatisticsSettings |
|
public static standardization(x: KMatrixInputData, type: KStatisticsSettings): Matrix source
The samples are standardize to a mean value of 0, standard deviation of 1.
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
type | KStatisticsSettings |
|
public static std(x: KMatrixInputData, type: KStatisticsSettings): Matrix source
Standard deviation.
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
type | KStatisticsSettings |
|
public static sum(x: KMatrixInputData, type: KStatisticsSettings): Matrix source
Sum.
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
type | KStatisticsSettings |
|
public static var(x: KMatrixInputData, type: KStatisticsSettings): Matrix source
Variance.
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
type | KStatisticsSettings |
|