pub struct EnsembleNoiseFunction { /* private fields */ }Expand description
Ensemble noise function that combines multiple noise functions
Implementations§
Source§impl EnsembleNoiseFunction
impl EnsembleNoiseFunction
Sourcepub fn new(noise_functions: Vec<LearnableNoiseFunction>) -> Self
pub fn new(noise_functions: Vec<LearnableNoiseFunction>) -> Self
Create a new ensemble noise function
Sourcepub fn combination_method(self, method: CombinationMethod) -> Self
pub fn combination_method(self, method: CombinationMethod) -> Self
Set the combination method
Trait Implementations§
Source§impl Clone for EnsembleNoiseFunction
impl Clone for EnsembleNoiseFunction
Source§fn clone(&self) -> EnsembleNoiseFunction
fn clone(&self) -> EnsembleNoiseFunction
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 EnsembleNoiseFunction
impl Debug for EnsembleNoiseFunction
Source§impl NoiseFunction for EnsembleNoiseFunction
impl NoiseFunction for EnsembleNoiseFunction
Source§fn compute_noise(&self, x: &Array2<f64>) -> SklResult<Array1<f64>>
fn compute_noise(&self, x: &Array2<f64>) -> SklResult<Array1<f64>>
Compute noise variance for given inputs
Source§fn update_parameters(
&mut self,
x: &Array2<f64>,
residuals: &Array1<f64>,
learning_rate: f64,
) -> SklResult<()>
fn update_parameters( &mut self, x: &Array2<f64>, residuals: &Array1<f64>, learning_rate: f64, ) -> SklResult<()>
Update noise function parameters given residuals
Source§fn get_parameters(&self) -> Vec<f64>
fn get_parameters(&self) -> Vec<f64>
Get current parameter values
Source§fn clone_box(&self) -> Box<dyn NoiseFunction>
fn clone_box(&self) -> Box<dyn NoiseFunction>
Clone the noise function
Auto Trait Implementations§
impl Freeze for EnsembleNoiseFunction
impl !RefUnwindSafe for EnsembleNoiseFunction
impl Send for EnsembleNoiseFunction
impl Sync for EnsembleNoiseFunction
impl Unpin for EnsembleNoiseFunction
impl !UnwindSafe for EnsembleNoiseFunction
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