pub struct PerformanceTuningSystem<F: Float + Debug> { /* private fields */ }
Expand description
Performance tuning system for interpolation optimization
Implementations§
Source§impl<F: Float + Debug> PerformanceTuningSystem<F>
impl<F: Float + Debug> PerformanceTuningSystem<F>
Sourcepub fn new() -> InterpolateResult<Self>
pub fn new() -> InterpolateResult<Self>
Create a new performance tuning system
Sourcepub fn set_strategy(&mut self, strategy: PerformanceTuningStrategy)
pub fn set_strategy(&mut self, strategy: PerformanceTuningStrategy)
Set performance tuning strategy
Sourcepub fn set_targets(&mut self, targets: PerformanceTargets)
pub fn set_targets(&mut self, targets: PerformanceTargets)
Set performance targets
Sourcepub fn optimize_performance(
&mut self,
method: InterpolationMethodType,
data_profile: &DataProfile<F>,
current_parameters: &HashMap<String, f64>,
current_metrics: &PerformanceMetrics,
) -> InterpolateResult<PerformanceOptimizationResult>
pub fn optimize_performance( &mut self, method: InterpolationMethodType, data_profile: &DataProfile<F>, current_parameters: &HashMap<String, f64>, current_metrics: &PerformanceMetrics, ) -> InterpolateResult<PerformanceOptimizationResult>
Optimize performance for given method and data characteristics
Sourcepub fn get_targets(&self) -> &PerformanceTargets
pub fn get_targets(&self) -> &PerformanceTargets
Get performance targets
Sourcepub fn get_tuning_history(&self) -> &VecDeque<TuningResult>
pub fn get_tuning_history(&self) -> &VecDeque<TuningResult>
Get tuning history
Sourcepub fn get_resource_usage(&self) -> ResourceUsage
pub fn get_resource_usage(&self) -> ResourceUsage
Get current resource usage
Sourcepub fn get_performance_baseline(
&self,
method: InterpolationMethodType,
) -> Option<&PerformanceBaseline>
pub fn get_performance_baseline( &self, method: InterpolationMethodType, ) -> Option<&PerformanceBaseline>
Get performance baseline for a method
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for PerformanceTuningSystem<F>where
F: Freeze,
impl<F> RefUnwindSafe for PerformanceTuningSystem<F>where
F: RefUnwindSafe,
impl<F> Send for PerformanceTuningSystem<F>where
F: Send,
impl<F> Sync for PerformanceTuningSystem<F>where
F: Sync,
impl<F> Unpin for PerformanceTuningSystem<F>where
F: Unpin,
impl<F> UnwindSafe for PerformanceTuningSystem<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.