pub struct CostPerformanceAnalysis {
pub points: Vec<CostPerformancePoint>,
pub pareto_frontier: Vec<CostPerformancePoint>,
pub best_accuracy: Option<CostPerformancePoint>,
pub best_efficiency: Option<CostPerformancePoint>,
pub lowest_cost: Option<CostPerformancePoint>,
}Expand description
Cost-Performance Analysis result
Fields§
§points: Vec<CostPerformancePoint>All data points
pareto_frontier: Vec<CostPerformancePoint>Pareto-optimal points
best_accuracy: Option<CostPerformancePoint>Best by accuracy
best_efficiency: Option<CostPerformancePoint>Best by cost efficiency (accuracy per dollar)
lowest_cost: Option<CostPerformancePoint>Best by cost (lowest)
Implementations§
Source§impl CostPerformanceAnalysis
impl CostPerformanceAnalysis
Sourcepub fn from_points(points: Vec<CostPerformancePoint>) -> Self
pub fn from_points(points: Vec<CostPerformancePoint>) -> Self
Compute Pareto frontier from data points
Sourcepub fn recommend(&self, constraints: &Constraints) -> Vec<Recommendation>
pub fn recommend(&self, constraints: &Constraints) -> Vec<Recommendation>
Get recommendations based on constraints
Trait Implementations§
Source§impl Clone for CostPerformanceAnalysis
impl Clone for CostPerformanceAnalysis
Source§fn clone(&self) -> CostPerformanceAnalysis
fn clone(&self) -> CostPerformanceAnalysis
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 CostPerformanceAnalysis
impl Debug for CostPerformanceAnalysis
Source§impl<'de> Deserialize<'de> for CostPerformanceAnalysis
impl<'de> Deserialize<'de> for CostPerformanceAnalysis
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 CostPerformanceAnalysis
impl RefUnwindSafe for CostPerformanceAnalysis
impl Send for CostPerformanceAnalysis
impl Sync for CostPerformanceAnalysis
impl Unpin for CostPerformanceAnalysis
impl UnsafeUnpin for CostPerformanceAnalysis
impl UnwindSafe for CostPerformanceAnalysis
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