/external/rust/crates/criterion/src/stats/univariate/ |
D | bootstrap.rs | 12 fn mean(size: usize, start: usize, nresamples: usize) -> TestResult { 16 let means = if nresamples > 0 { 17 sample.bootstrap(nresamples, |s| (s.mean(),)).0 27 means.len() == nresamples && 41 fn mean_median(size: usize, start: usize, nresamples: usize) -> TestResult { 45 let (means, medians) = if nresamples > 0 { 46 sample.bootstrap(nresamples, |s| (s.mean(), s.median())) 56 means.len() == nresamples && 57 medians.len() == nresamples && 78 nresamples: usize [all …]
|
D | mod.rs | 31 nresamples: usize, in bootstrap() 42 let nresamples_sqrt = (nresamples as f64).sqrt().ceil() as usize; in bootstrap() 43 let per_chunk = (nresamples + nresamples_sqrt - 1) / nresamples_sqrt; in bootstrap() 51 let end = cmp::min((i + 1) * per_chunk, nresamples); in bootstrap()
|
D | mixed.rs | 13 nresamples: usize, in bootstrap() 30 (0..nresamples) in bootstrap()
|
D | resamples.rs | 73 fn subset(size: usize, nresamples: usize) -> TestResult { 80 TestResult::from_bool((0..nresamples).all(|_| {
|
D | sample.rs | 202 pub fn bootstrap<T, S>(&self, nresamples: usize, statistic: S) -> T::Distributions in bootstrap() 209 (0..nresamples) in bootstrap()
|
/external/rust/crates/criterion/src/stats/bivariate/ |
D | bootstrap.rs | 14 offset: usize, nresamples: usize) -> TestResult { 19 let (x_means, y_means) = if nresamples > 0 { 20 data.bootstrap(nresamples, |d| (d.x().mean(), d.y().mean())) 32 x_means.len() == nresamples && 33 y_means.len() == nresamples && 52 offset: usize, nresamples: usize) -> TestResult { 57 let slopes = if nresamples > 0 { 58 data.bootstrap(nresamples, |d| (Slope::fit(&d),)).0 65 slopes.len() == nresamples &&
|
D | mod.rs | 68 pub fn bootstrap<T, S>(&self, nresamples: usize, statistic: S) -> T::Distributions in bootstrap() 75 (0..nresamples) in bootstrap()
|
/external/rust/crates/criterion/src/analysis/ |
D | compare.rs | 77 let nresamples = config.nresamples; in t_test() localVariable 82 mixed::bootstrap(avg_times, base_avg_times, nresamples, |a, b| (a.t(b),)) in t_test() 116 let nresamples = config.nresamples; in estimates() localVariable 120 univariate::bootstrap(avg_times, base_avg_times, nresamples, stats) in estimates()
|
D | mod.rs | 277 data.bootstrap(config.nresamples, |d| (Slope::fit(&d).0,)) in regression() 311 let nresamples = config.nresamples; in estimates() localVariable 323 avg_times.bootstrap(nresamples, stats) in estimates()
|
/external/rust/crates/criterion/src/ |
D | benchmark.rs | 21 pub nresamples: usize, field 34 pub(crate) nresamples: Option<usize>, field 48 nresamples: None, in default() 64 nresamples: self.nresamples.unwrap_or(defaults.nresamples), in to_complete() 166 pub fn nresamples(mut self, n: usize) -> Self { 172 self.config.nresamples = Some(n);
|
D | connection.rs | 338 nresamples: usize, field 349 nresamples: other.nresamples, in from()
|
D | benchmark_group.rs | 145 pub fn nresamples(&mut self, n: usize) -> &mut Self { in nresamples() method 151 self.partial_config.nresamples = Some(n); in nresamples()
|
D | lib.rs | 428 nresamples: 100_000, in default() 564 pub fn nresamples(mut self, n: usize) -> Criterion<M> { in nresamples() method 570 self.config.nresamples = n; in nresamples() 800 …t!("Changes the default number of resamples for this run. [default: {}]", self.config.nresamples))) in configure_from_args() 1028 self.config.nresamples = num_resamples; in configure_from_args()
|
/external/rust/crates/criterion/tests/ |
D | criterion_tests.rs | 35 .nresamples(2000) in short_benchmark()
|
/external/rust/crates/criterion/ |
D | CHANGELOG.md | 101 - Fix potential panic when `nresamples` is set too low. Also added a warning 102 against setting `nresamples` too low.
|