ta_benchmarks/fixture.rs
1//! Small deterministic fixtures shared by the default Criterion benchmarks.
2
3pub fn series_fixture(size: usize, seed: usize) -> Vec<f64> {
4 (0..size)
5 .map(|index| {
6 let trend = index as f64 * 0.001;
7 let cycle = ((index * 37 + seed * 17) % 101) as f64;
8 trend + cycle + 1.0
9 })
10 .collect()
11}