pub struct SamplingBasedBaseline { /* private fields */ }Expand description
Sampling-based baseline for efficient processing
Implementations§
Source§impl SamplingBasedBaseline
impl SamplingBasedBaseline
Sourcepub fn new(
sampling_rate: f64,
min_samples: usize,
max_samples: usize,
) -> Result<Self>
pub fn new( sampling_rate: f64, min_samples: usize, max_samples: usize, ) -> Result<Self>
Create new sampling-based baseline
Sourcepub fn compute_sampled_baseline(
&self,
y: &ArrayView1<'_, f64>,
) -> Result<SampledBaselineResult>
pub fn compute_sampled_baseline( &self, y: &ArrayView1<'_, f64>, ) -> Result<SampledBaselineResult>
Compute baseline using sampling
Sourcepub fn adaptive_sample(
&mut self,
y: &ArrayView1<'_, f64>,
) -> Result<SampledBaselineResult>
pub fn adaptive_sample( &mut self, y: &ArrayView1<'_, f64>, ) -> Result<SampledBaselineResult>
Adaptive sampling that adjusts rate based on variance
Auto Trait Implementations§
impl Freeze for SamplingBasedBaseline
impl RefUnwindSafe for SamplingBasedBaseline
impl Send for SamplingBasedBaseline
impl Sync for SamplingBasedBaseline
impl Unpin for SamplingBasedBaseline
impl UnwindSafe for SamplingBasedBaseline
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more