Expand description
Core data structures to be used internally in Curve implementations, encapsulating storage and access patterns for reuse.
The Core types here expose their fields publicly so that it is easier to manipulate and
extend them, but in doing so, you must maintain the invariants of those fields yourself. The
provided methods all maintain the invariants, so this is only a concern if you manually mutate
the fields.
Structs§
- ChunkedUneven Core 
- The data core of a curve using uneven samples (i.e. keyframes), where each sample time yields some fixed number of values — the sampling width. This may serve as storage for curves that yield vectors or iterators, and in some cases, it may be useful for cache locality if the sample type can effectively be encoded as a fixed-length slice of values.
- EvenCore 
- The data core of a curve derived from evenly-spaced samples. The intention is to use this
in addition to explicit or inferred interpolation information in user-space in order to
implement curves using domainandsample_with.
- UnevenCore 
- The data core of a curve defined by unevenly-spaced samples or keyframes. The intention is to
use this in concert with implicitly or explicitly-defined interpolation in user-space in
order to implement the curve interface using domainandsample_with.
Enums§
- ChunkedUneven Core Error 
- An error that indicates that a ChunkedUnevenCorecould not be formed.
- EvenCore Error 
- An error indicating that an EvenCorecould not be constructed.
- InterpolationDatum 
- This type expresses the relationship of a value to a fixed collection of values. It is a kind of summary used intermediately by sampling operations.
- UnevenCore Error 
- An error indicating that an UnevenCorecould not be constructed.
Functions§
- even_interp 
- Given a domain and a number of samples taken over that interval, return an InterpolationDatumthat governs how samples are extracted relative to the stored data.
- uneven_interp 
- Given a list of timesand a target value, get the interpolation relationship for the target value in terms of the indices of the starting list. In a sense, this encapsulates the heart of uneven/keyframe sampling.