pub struct ConfiguredParetoFront {
pub calibration: RDCalibration,
pub scheme: BinScheme,
pub points: Vec<ConfiguredRDPoint>,
}Expand description
Pareto frontier with angular binning.
Fields§
§calibration: RDCalibration§scheme: BinScheme§points: Vec<ConfiguredRDPoint>Implementations§
Source§impl ConfiguredParetoFront
impl ConfiguredParetoFront
Sourcepub fn compute(
points: Vec<ConfiguredRDPoint>,
calibration: RDCalibration,
scheme: BinScheme,
) -> Self
pub fn compute( points: Vec<ConfiguredRDPoint>, calibration: RDCalibration, scheme: BinScheme, ) -> Self
Compute non-dominated front (bpp vs s2).
pub fn best_config_for_s2(&self, min_s2: f64) -> Option<&ConfiguredRDPoint>
pub fn best_config_for_ba(&self, max_ba: f64) -> Option<&ConfiguredRDPoint>
pub fn best_config_for_bpp(&self, max_bpp: f64) -> Option<&ConfiguredRDPoint>
pub fn in_bin(&self, bin: &AngleBin) -> Vec<&ConfiguredRDPoint>
pub fn coverage(&self) -> Vec<(AngleBin, usize)>
pub fn empty_bins(&self) -> Vec<AngleBin>
Trait Implementations§
Source§impl Clone for ConfiguredParetoFront
impl Clone for ConfiguredParetoFront
Source§fn clone(&self) -> ConfiguredParetoFront
fn clone(&self) -> ConfiguredParetoFront
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 ConfiguredParetoFront
impl Debug for ConfiguredParetoFront
Source§impl<'de> Deserialize<'de> for ConfiguredParetoFront
impl<'de> Deserialize<'de> for ConfiguredParetoFront
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConfiguredParetoFront
impl RefUnwindSafe for ConfiguredParetoFront
impl Send for ConfiguredParetoFront
impl Sync for ConfiguredParetoFront
impl Unpin for ConfiguredParetoFront
impl UnwindSafe for ConfiguredParetoFront
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> 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