pub fn rescaled_range_for_n(returns: &[Decimal], n: usize) -> Option<Decimal>Expand description
Compute the average Rescaled Range statistic for a given subseries size n.
Splits the return series into non-overlapping subseries of size n,
computes R/S for each, and returns the average. Returns None if no
valid subseries produced a result.