pub struct AccuracyOptimizationEngine<F: Float + Debug> { /* private fields */ }Expand description
Accuracy optimization engine
Implementations§
Source§impl<F: Float + Debug + AddAssign> AccuracyOptimizationEngine<F>
impl<F: Float + Debug + AddAssign> AccuracyOptimizationEngine<F>
Sourcepub fn new() -> InterpolateResult<Self>
pub fn new() -> InterpolateResult<Self>
Create a new accuracy optimization engine
Sourcepub fn set_strategy(&mut self, strategy: AccuracyOptimizationStrategy)
pub fn set_strategy(&mut self, strategy: AccuracyOptimizationStrategy)
Set optimization strategy
Sourcepub fn set_targets(&mut self, targets: AccuracyTargets<F>)
pub fn set_targets(&mut self, targets: AccuracyTargets<F>)
Set accuracy targets
Sourcepub fn optimize_accuracy(
&mut self,
method: InterpolationMethodType,
data_profile: &DataProfile<F>,
current_parameters: &HashMap<String, f64>,
) -> InterpolateResult<AccuracyOptimizationResult>
pub fn optimize_accuracy( &mut self, method: InterpolationMethodType, data_profile: &DataProfile<F>, current_parameters: &HashMap<String, f64>, ) -> InterpolateResult<AccuracyOptimizationResult>
Optimize interpolation accuracy for given method and data
Sourcepub fn predict_accuracy(
&self,
method: InterpolationMethodType,
data_profile: &DataProfile<F>,
parameters: &HashMap<String, f64>,
) -> InterpolateResult<AccuracyPrediction<F>>
pub fn predict_accuracy( &self, method: InterpolationMethodType, data_profile: &DataProfile<F>, parameters: &HashMap<String, f64>, ) -> InterpolateResult<AccuracyPrediction<F>>
Predict accuracy for given method and parameters
Sourcepub fn update_error_model(
&mut self,
method: InterpolationMethodType,
data_profile: &DataProfile<F>,
predicted_error: F,
actual_error: F,
) -> InterpolateResult<()>
pub fn update_error_model( &mut self, method: InterpolationMethodType, data_profile: &DataProfile<F>, predicted_error: F, actual_error: F, ) -> InterpolateResult<()>
Update error prediction model with actual results
Sourcepub fn get_optimization_history(&self) -> &VecDeque<AccuracyOptimizationResult>
pub fn get_optimization_history(&self) -> &VecDeque<AccuracyOptimizationResult>
Get optimization history
Sourcepub fn get_targets(&self) -> &AccuracyTargets<F>
pub fn get_targets(&self) -> &AccuracyTargets<F>
Get current accuracy targets
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for AccuracyOptimizationEngine<F>where
F: Freeze,
impl<F> RefUnwindSafe for AccuracyOptimizationEngine<F>where
F: RefUnwindSafe,
impl<F> Send for AccuracyOptimizationEngine<F>where
F: Send,
impl<F> Sync for AccuracyOptimizationEngine<F>where
F: Sync,
impl<F> Unpin for AccuracyOptimizationEngine<F>where
F: Unpin,
impl<F> UnwindSafe for AccuracyOptimizationEngine<F>where
F: UnwindSafe,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.