pub struct AbTestSuite {
pub comparisons: Vec<QualityComparison>,
}Expand description
A suite of A/B comparisons that can identify the overall best candidate.
Fields§
§comparisons: Vec<QualityComparison>All comparisons in this suite.
Implementations§
Source§impl AbTestSuite
impl AbTestSuite
Sourcepub fn add(&mut self, comparison: QualityComparison)
pub fn add(&mut self, comparison: QualityComparison)
Adds a comparison to the suite.
Sourcepub fn comparison_count(&self) -> usize
pub fn comparison_count(&self) -> usize
Returns the number of comparisons in the suite.
Sourcepub fn best_candidate_by_psnr(&self) -> Option<String>
pub fn best_candidate_by_psnr(&self) -> Option<String>
Returns the name of the candidate that wins the most comparisons by PSNR.
Returns None if the suite is empty.
Sourcepub fn best_candidate_by_efficiency(&self) -> Option<String>
pub fn best_candidate_by_efficiency(&self) -> Option<String>
Returns the name of the candidate that wins the most comparisons by efficiency.
Returns None if the suite is empty.
Trait Implementations§
Source§impl Clone for AbTestSuite
impl Clone for AbTestSuite
Source§fn clone(&self) -> AbTestSuite
fn clone(&self) -> AbTestSuite
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AbTestSuite
impl Debug for AbTestSuite
Source§impl Default for AbTestSuite
impl Default for AbTestSuite
Source§fn default() -> AbTestSuite
fn default() -> AbTestSuite
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AbTestSuite
impl RefUnwindSafe for AbTestSuite
impl Send for AbTestSuite
impl Sync for AbTestSuite
impl Unpin for AbTestSuite
impl UnsafeUnpin for AbTestSuite
impl UnwindSafe for AbTestSuite
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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