Struct yamakan::optimizers::random::RandomOptimizer[][src]

pub struct RandomOptimizer<P, V> { /* fields omitted */ }

Random optimizer.

This optimizer samples parameters at random from the given domain.

Implementations

impl<P, V> RandomOptimizer<P, V> where
    P: Domain + Distribution<<P as Domain>::Point>, 
[src]

pub fn new(param_domain: P) -> Self[src]

Makes a new RandomOptimizer instance.

Trait Implementations

impl<P: Debug, V: Debug> Debug for RandomOptimizer<P, V>[src]

impl<P, V> Default for RandomOptimizer<P, V> where
    P: Default + Domain + Distribution<<P as Domain>::Point>, 
[src]

impl<P, V> Optimizer for RandomOptimizer<P, V> where
    P: Domain + Distribution<<P as Domain>::Point>, 
[src]

type Param = P::Point

The parameter to be optimized.

type Value = V

The value obtained as a result of a parameter evaluation.

Auto Trait Implementations

impl<P, V> RefUnwindSafe for RandomOptimizer<P, V> where
    P: RefUnwindSafe,
    V: RefUnwindSafe

impl<P, V> Send for RandomOptimizer<P, V> where
    P: Send,
    V: Send

impl<P, V> Sync for RandomOptimizer<P, V> where
    P: Sync,
    V: Sync

impl<P, V> Unpin for RandomOptimizer<P, V> where
    P: Unpin,
    V: Unpin

impl<P, V> UnwindSafe for RandomOptimizer<P, V> where
    P: UnwindSafe,
    V: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,