[][src]Trait argmin_core::ArgminWrite

pub trait ArgminWrite: Send + Sync {
    type Param;
    fn write(
        &self,
        param: &Self::Param,
        iter: u64,
        new_best: bool
    ) -> Result<(), Error>; }

Every writer (which is something that writes parameter vectors somewhere after each iteration) needs to implement this.

Associated Types

type Param

Loading content...

Required methods

fn write(
    &self,
    param: &Self::Param,
    iter: u64,
    new_best: bool
) -> Result<(), Error>

Writes the parameter vector somewhere

Loading content...

Implementors

impl<T: Clone> ArgminWrite for ArgminWriter<T>[src]

type Param = T

impl<T: Serialize + Send + Sync> ArgminWrite for WriteToFile<T>[src]

type Param = T

Loading content...