Statistical functions for arrays.
var ns = require( '@stdlib/stats/array' );Namespace containing APIs for performing statistical operations on arrays.
var o = ns;
// returns {...}The namespace exports the following:
maxBy( x, clbk[, thisArg] ): calculate the maximum value of an array via a callback function.max( x ): calculate the maximum value of an array.maxabs( x ): calculate the maximum absolute value of an array.maxsorted( x ): calculate the maximum value of a sorted array.mean( x ): calculate the arithmetic mean of an array.mediansorted( x ): calculate the median value of a sorted array.minBy( x, clbk[, thisArg] ): calculate the minimum value of an array via a callback function.min( x ): calculate the minimum value of an array.minabs( x ): calculate the minimum absolute value of an array.minsorted( x ): calculate the minimum value of a sorted array.mskmax( x, mask ): calculate the maximum value of an array according to a mask.mskmin( x, mask ): calculate the minimum value of an array according to a mask.mskrange( x, mask ): calculate the range of an array according to a mask.nanmaxBy( x, clbk[, thisArg] ): calculate the maximum value of an array via a callback function, ignoringNaNvalues.nanmax( x ): calculate the maximum value of an array, ignoringNaNvalues.nanmaxabs( x ): calculate the maximum absolute value of an array, ignoringNaNvalues.nanminBy( x, clbk[, thisArg] ): calculate the minimum value of an array via a callback function, ignoringNaNvalues.nanmin( x ): calculate the minimum value of an array, ignoringNaNvalues.nanminabs( x ): calculate the minimum absolute value of an array, ignoringNaNvalues.nanrange( x ): calculate the range of an array, ignoringNaNvalues.range( x ): calculate the range of an array.varianceyc( x[, correction] ): calculate the variance of an array using a one-pass algorithm proposed by Youngs and Cramer.
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/stats/array' );
console.log( objectKeys( ns ) );