pub struct GaussianProcess { /* private fields */ }Expand description
Gaussian Process surrogate model.
Uses RBF (Radial Basis Function) kernel for smooth function approximation.
Implementations§
Source§impl GaussianProcess
impl GaussianProcess
Sourcepub fn new(length_scale: f64, signal_variance: f64, noise_variance: f64) -> Self
pub fn new(length_scale: f64, signal_variance: f64, noise_variance: f64) -> Self
Create a new Gaussian Process.
Sourcepub fn add_observation(&mut self, x: Vec<f64>, y: f64)
pub fn add_observation(&mut self, x: Vec<f64>, y: f64)
Add training data point.
Sourcepub fn n_observations(&self) -> usize
pub fn n_observations(&self) -> usize
Get number of training points.
Trait Implementations§
Source§impl Clone for GaussianProcess
impl Clone for GaussianProcess
Source§fn clone(&self) -> GaussianProcess
fn clone(&self) -> GaussianProcess
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 moreAuto Trait Implementations§
impl Freeze for GaussianProcess
impl RefUnwindSafe for GaussianProcess
impl Send for GaussianProcess
impl Sync for GaussianProcess
impl Unpin for GaussianProcess
impl UnsafeUnpin for GaussianProcess
impl UnwindSafe for GaussianProcess
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