Function iterative_methods::utils::mean_of_means_of_step_stream[][src]

pub fn mean_of_means_of_step_stream() -> f64
Expand description

A stream of 100 weighted datum is generated using generate_step_stream. The first 50 items have value 0 and the remaining 50 have value 1. All weights are set to 1. The mean of a reservoir sample with capacity equal to half the stream length is computed and stored. This is repeated 50 times and the mean of the means is returned.

This is used in wrs_mean_test and wrs_mean_test_looped. The latter is used to determine the error rate of the former.