Crate lace_utils

source ·

Modules§

Structs§

Traits§

Functions§

  • Returns the index of the largest element in xs.
  • Returns the index of the smallest element in xs.
  • Bins the entries in xs into k bins.
  • Choose two distinct random numbers in [0, …, n-1]
  • Cumulative sum of xs
  • Perform ln(exp(x) + exp(y)) in a more numerically stable way
  • The mean of a vector of f64
  • Compute the mean and variance faster than by calling mean and var separately
  • Returns a tuple (min_elem, max_elem).
  • Attempt to turn a &str into a T
  • Like signum, but return 0.0 if the number is zero
  • The standard deviation of a vector of f64
  • Turn Vec<Map<K, V>> into Map<K, Vec<V>>
  • Returns a vector, in descending order, of the indices of the unused components in asgn_vec, which can take on values from 0…k-1
  • The variance of a vector of f64