Skip to main content

Module builder_pattern

Module builder_pattern 

Source
Expand description

Standard builder pattern

For more complex interpolators, use a builder pattern that follows these conventions:

§Example

let interpolator = ExampleInterpolatorBuilder::new()
    .with_smoothing(0.1)
    .with_regularization(0.01)
    .with_max_iterations(200)
    .build(points, values)?;

Structs§

StandardInterpolatorBuilder
Example builder structure