pub struct MyOracle { /* private fields */ }Trait Implementations§
Source§impl OracleOptim<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for MyOracle
impl OracleOptim<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for MyOracle
Source§fn assess_optim(
&mut self,
xc: &Array1<f64>,
gamma: &mut f64,
) -> ((Array1<f64>, f64), bool)
fn assess_optim( &mut self, xc: &Array1<f64>, gamma: &mut f64, ) -> ((Array1<f64>, f64), bool)
The function assesses optimization based on input values and returns a tuple along with a boolean flag.
Arguments:
xc: Thexcparameter in theassess_optimfunction represents an array containing two elements. The first element,xc[0], is assigned to the variablesqrtx, and the second element,xc[1], is assigned to the variablelogy. Thesegamma: Thegammaparameter is a mutable reference to af64value. It is being updated within theassess_optimfunction based on the calculations performed on the input valuesxcand the internal state of the function.
type CutChoice = f64
Auto Trait Implementations§
impl Freeze for MyOracle
impl RefUnwindSafe for MyOracle
impl Send for MyOracle
impl Sync for MyOracle
impl Unpin for MyOracle
impl UnwindSafe for MyOracle
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