Trait std_dev::regression::binary_search::NVariableStorage
source · pub trait NVariableStorage: IndexMut<usize, Output = f64> + AsRef<[f64]> + AsMut<[f64]> + Clone {
type Data;
type Given<'a>: AsRef<[f64]>
where Self: 'a;
// Required methods
fn new_filled(data: &Self::Data, num: f64) -> Self;
fn borrow(&self) -> Self::Given<'_>;
}
Available on crate feature
regression
only.Expand description
A trait which allows storage of n-variable optimization, either on the stack through arrays
([f64; VARIABLE_COUNT]
) or allocated on the heap through Vec
.
Required Associated Types§
Required Methods§
sourcefn new_filled(data: &Self::Data, num: f64) -> Self
fn new_filled(data: &Self::Data, num: f64) -> Self
Creates a new storage filled with num
.