Expand description
Various utility functions for vectors: flattening them, min-max values, cumulative sums and scaling them.
Functionsยง
- array_
max - Get the maximum value of an array
- array_
max_ min - Get the maximum and minimum value of an array
- array_
min - Get the minimum value of an array
- cumsum
- Calculate the cumulative sum over a vector
- flatten_
vector - Flatten a nested vector
- min_
max_ scale - Min-max scale a vector to the range [0, 1].
- rank_
normalise - Rank-normalise a vector by ranking values and dividing by n.
- robust_
scale - Robust-scale a vector using median and MAD.
- split_
vector_ randomly - Split a vector randomly into two chunks
- thread_
chunks - Split
0..ninto one contiguous range per rayon worker. - unique
- Get unique elements from a slice of any hashable, equatable numeric type.
- zscore_
normalise - Z-score normalise a vector (zero mean, unit variance).