Module abd_clam::utils

source ·
Expand description

Utility functions for the crate.

Functions§

  • Return the index and value of the maximum value in the given slice of values.
  • Return the index and value of the minimum value in the given slice of values.
  • Calculate the mean of every row in a 2D array represented as an array of Vecs.
  • Calculate the standard deviation of every row in a 2D array represented as an array of Vecs.
  • Return the mean value of the given slice of values.
  • Calculate the mean and variance of the given values.
  • Find the median value using the quickselect algorithm.
  • Compute the next exponential moving average of the given ratio and parent EMA.
  • Transpose a matrix represented as an array of arrays (slices) to an array of Vecs.
  • Return the variance of the given slice of values.