(price_div: f64, m_bet_size: f64, func: &str)
| 227 | /// `signal` is `(start, size)` pairs and `t1` the matching end times (zipped, so extra |
| 228 | /// entries in the longer slice are ignored). The evaluation points are the sorted, unique |
| 229 | /// union of all starts and ends; at each, the result is the mean of the signals with |
| 230 | /// `start <= t < end`, or 0 if none is live. |
| 231 | pub fn avg_active_signals( |
| 232 | signal: &[(NaiveDateTime, f64)], |
| 233 | t1: &[NaiveDateTime], |
| 234 | ) -> Vec<(NaiveDateTime, f64)> { |