BSplinebasis
|
Generates the BSplines on a grid. More...
#include <BSplineGenerator.h>
Public Member Functions | |
BSplineGenerator (std::vector< T > knots) | |
Constructor generating the grid from the knots vector. | |
BSplineGenerator (std::vector< T > knots, const Grid< T > &grid) | |
Constructor using the provided grid instance. | |
Grid< T > | getGrid () const |
Returns the grid. | |
template<size_t order> | |
std::vector< Spline< T, order > > | generateBSplines () const |
Generates all BSplines with respect to the knots vector. | |
Generates the BSplines on a grid.
Factory class generating all BSplines of a given order for a given knots vector.
T | The datatype of the spline and grid. |
|
inlineexplicit |
Constructor generating the grid from the knots vector.
knots | The knots, the BSplines shall be generated on. |
BSplineException | If the knots are not in increasing order. |
|
inline |
Constructor using the provided grid instance.
knots | The knots, the BSplines shall be generated on. |
grid | The Grid instance to use. Must be logically equivalent to the Grid generated from knots. If that is not the case, an exception is thrown. |
BSplineException | If the knots are not in increasing order. |
BSplineException | If the grid derived from the knots vector is not logically equivalent to the Grid grid. |
|
inline |
Generates all BSplines with respect to the knots vector.
order | Order of the BSplines to generate. |
BSplineException | If the knots vector does not contain enough entries to generate a spline of the requested order. |
Returns the grid.