Search results
47 packages found
Count the number of truthy elements in an array.
Count the number of falsy elements in an array.
Count the number of elements in an array which pass a test implemented by a predicate function.
Count the number of elements in an array that are equal to a specified value.
Test if a value is an array of probabilities that sum to one.
- stdlib
- stdassert
- assertion
- assert
- utilities
- utility
- utils
- util
- probability
- probs
- prob
- distribution
- discrete
- sum
- View more
Count the number of elements in an array that are equal to a specified value.
Calculate the sum of strided array elements using an improved Kahan–Babuška algorithm.
- stdlib
- stdmath
- statistics
- stats
- mathematics
- math
- blas
- extended
- sum
- total
- summation
- compensated
- kahan
- kbn
- View more
`getColumnSum` is an npm package for calculating the total sum of a column of numbers in an array of arrays, where each inner array represents a row of data. The package exports a single function `getColumnSum` that takes in four arguments:
Calculate the sum of single-precision floating-point strided array elements using extended accumulation and returning an extended precision result.
- stdlib
- stdmath
- statistics
- stats
- mathematics
- math
- blas
- extended
- sum
- total
- summation
- strided
- strided array
- typed
- View more
A fastest module to calculate the sum of numbers in an array.
Calculate the sum of double-precision floating-point strided array elements using an improved Kahan–Babuška algorithm.
- stdlib
- stdmath
- statistics
- stats
- mathematics
- math
- blas
- extended
- sum
- total
- summation
- compensated
- kahan
- kbn
- View more
A utility package that adds new higher-order functions (HOFs) to arrays, allowing you to directly calculate the sum of an array and remove duplicate numbers.
Calculate the sum of single-precision floating-point strided array elements using an improved Kahan–Babuška algorithm.
- stdlib
- stdmath
- statistics
- stats
- mathematics
- math
- blas
- extended
- sum
- total
- summation
- compensated
- kahan
- kbn
- View more
Calculate the sum of strided array elements, ignoring NaN values and using an improved Kahan–Babuška algorithm.
- stdlib
- stdmath
- statistics
- stats
- mathematics
- math
- blas
- extended
- sum
- total
- summation
- compensated
- kahan
- kbn
- View more
Calculate the cumulative sum of strided array elements using an improved Kahan–Babuška algorithm.
- stdlib
- stdmath
- statistics
- stats
- mathematics
- math
- blas
- extended
- sum
- total
- summation
- compensated
- kahan
- kbn
- View more
Calculate the sum of single-precision floating-point strided array elements using pairwise summation with extended accumulation and returning an extended precision result.
Calculate the sum of strided array elements, ignoring NaN values and using an improved Kahan–Babuška algorithm.
- stdlib
- stdmath
- statistics
- stats
- mathematics
- math
- blas
- extended
- sum
- total
- summation
- compensated
- strided
- strided array
- View more
Calculate the sum of single-precision floating-point strided array elements using ordinary recursive summation with extended accumulation and returning an extended precision result.
- stdlib
- stdmath
- statistics
- stats
- mathematics
- math
- blas
- extended
- sum
- total
- summation
- ors
- strided
- strided array
- View more
Calculate the sum of double-precision floating-point strided array elements, ignoring NaN values and using an improved Kahan–Babuška algorithm.
- stdlib
- stdmath
- statistics
- stats
- mathematics
- math
- blas
- extended
- sum
- total
- summation
- compensated
- strided
- strided array
- View more
Calculate the cumulative sum of double-precision floating-point strided array elements using an improved Kahan–Babuška algorithm.
- stdlib
- stdmath
- statistics
- stats
- mathematics
- math
- blas
- extended
- sum
- total
- summation
- cumulative
- accumulate
- kbn
- View more