Expand description
This module provide a collection of routines to perform adaptive sampling of curves as well as manipulating those samplings.
As of now, the following is available:
- uniform sampling of the graph of functions ℝ → ℝ and the image
of functions ℝ → ℝ² (see
Sampling::uniform); - adaptive sampling of the graph functions ℝ → ℝ and the image of
functions ℝ → ℝ² (see
Sampling::fun).
Samplings can be saved as a list of coordinates x-y, one point per
line with blank lines to indicate that the path is interrupted,
with Sampling::write. They can also be saved in a format
usable from the LaTeX package TikZ using
Sampling::latex. This format allows to add arrows to the
curves to indicate their orientation.
Structs§
- Bounding
Box - A two dimensional rectangle [
xmin,xmax] × [ymin,ymax]. - Data
- Wrapper to indicate that a value is a data associated with a point.
- Fun
- Options for sampling graphs of functions ℝ → ℝ and ℝ → ℝ².
See
Sampling::fun. - Into
Iter Data - Iterator returning the curve points and owned data.
- Iter
- Iterator on the curve points (and cuts).
- Iter
Data - Iterator on the curve points (and cuts) together with the attached data.
- IterMut
- Mutable iterator on the curve points (and cuts).
- LaTeX
- LaTeX output, created by
Sampling::latex. - NoData
- Type indicating that no data is associated with the sampling.
- Param
Deprecated - Options for sampling the image of functions ℝ → ℝ².
See
Sampling::param. - Sampling
- A sampling of a 2D curve. This can be thought of as a 2D path, with possible “cuts” due to discontinuities or leaving the domain of the (parametric) function describing the path.
- Uniform
- Options for uniform sampling graphs of function ℝ → ℝ.
See
Sampling::uniform.
Traits§
- Img
- Suitable images of functions that can be used to generate samplings.