Skip to main content

rle_encode

Function rle_encode 

Source
pub fn rle_encode(data: &[f64]) -> Vec<(f64, usize)>
Expand description

Encode a slice of f64 values using run-length encoding.

Returns a Vec<(f64, usize)> where each tuple is (value, count).