Home
last modified time | relevance | path

Searched refs:nresamples (Results 1 – 15 of 15) sorted by relevance

/external/rust/crates/criterion/src/stats/univariate/
Dbootstrap.rs12 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 …]
Dmod.rs31 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()
Dmixed.rs13 nresamples: usize, in bootstrap()
30 (0..nresamples) in bootstrap()
Dresamples.rs73 fn subset(size: usize, nresamples: usize) -> TestResult {
80 TestResult::from_bool((0..nresamples).all(|_| {
Dsample.rs202 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/
Dbootstrap.rs14 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 &&
Dmod.rs68 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/
Dcompare.rs77 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()
Dmod.rs277 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/
Dbenchmark.rs21 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);
Dconnection.rs338 nresamples: usize, field
349 nresamples: other.nresamples, in from()
Dbenchmark_group.rs145 pub fn nresamples(&mut self, n: usize) -> &mut Self { in nresamples() method
151 self.partial_config.nresamples = Some(n); in nresamples()
Dlib.rs428 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/
Dcriterion_tests.rs35 .nresamples(2000) in short_benchmark()
/external/rust/crates/criterion/
DCHANGELOG.md101 - Fix potential panic when `nresamples` is set too low. Also added a warning
102 against setting `nresamples` too low.