pub enum Sampler {
Grid(Grid),
Random(Random),
Halton(Halton),
Sobol(Sobol),
Tpe(Tpe),
}Expand description
Whichever of the schemes a sampler is.
Variants§
Grid(Grid)
Grid: every combination, then nothing.
Random(Random)
Random: uniform, looking at nothing.
Halton(Halton)
Halton: spread on purpose, one prime per knob.
Sobol(Sobol)
Sobol: spread on purpose, and without Halton’s seam.
Tpe(Tpe)
Tpe: guided by what already worked.
Implementations§
Source§impl Sampler
impl Sampler
Sourcepub fn ask(
&self,
space: &Space,
trial: usize,
seen: &[(Point, Option<f64>)],
) -> Option<Point>
pub fn ask( &self, space: &Space, trial: usize, seen: &[(Point, Option<f64>)], ) -> Option<Point>
Where to look for the trial-th time, or None when there is nowhere
left. seen is the points somebody has already been to, and a score
that is not there means the trial is still running. Four of the five
ignore the argument, which is the point of having five.
Trait Implementations§
impl StructuralPartialEq for Sampler
Auto Trait Implementations§
impl Freeze for Sampler
impl RefUnwindSafe for Sampler
impl Send for Sampler
impl Sync for Sampler
impl Unpin for Sampler
impl UnsafeUnpin for Sampler
impl UnwindSafe for Sampler
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