Skip to main content

AdaptiveStrategy

Trait AdaptiveStrategy 

Source
pub trait AdaptiveStrategy: Send + Sync {
    // Required methods
    fn adjust(
        &self,
        state: &GenerationState,
        base: &SamplingParams,
    ) -> SamplingParams;
    fn name(&self) -> &'static str;
}
Expand description

Adaptive sampling strategy.

Required Methods§

Source

fn adjust( &self, state: &GenerationState, base: &SamplingParams, ) -> SamplingParams

Given the current generation state and base params, return adjusted params.

Source

fn name(&self) -> &'static str

Human-readable name of this strategy.

Implementors§