#include <mia/core/splinekernel.hh>
Public Member Functions | |
| void | reset () |
| SCache (size_t s, const CSplineBoundaryCondition &bc, bool am) | |
Data Fields | |
| const CSplineBoundaryCondition & | boundary_condition |
| the boundary condition to be applied More... | |
| VIndex | index |
| cached indices More... | |
| int | index_limit |
| last possible start index More... | |
| bool | is_flat |
| store whether indices were mirrored More... | |
| bool | never_flat |
| always use mirror More... | |
| int | start_idx |
| last start index the B-spline was evaluated for More... | |
| VWeight | weights |
| cached weights More... | |
| double | x |
A struture to cache B-spline weights and indices
Definition at line 68 of file splinekernel.hh.
| CSplineKernel::SCache::SCache | ( | size_t | s, |
| const CSplineBoundaryCondition & | bc, | ||
| bool | am | ||
| ) |
Initialize the case by setting the index and weight array size and mirror boundary sizes
| s | support size of the kernel which equals the size of the index and weight arrays |
| bc | Boundary conditions to be used, this is a reference to the parent interpolator object |
| am | set to true if indices always need to be set |
| void CSplineKernel::SCache::reset | ( | ) |
reset the parameters of the cache
| const CSplineBoundaryCondition& CSplineKernel::SCache::boundary_condition |
the boundary condition to be applied
Definition at line 101 of file splinekernel.hh.
| VIndex CSplineKernel::SCache::index |
cached indices
Definition at line 98 of file splinekernel.hh.
| int CSplineKernel::SCache::index_limit |
last possible start index
Definition at line 92 of file splinekernel.hh.
| bool CSplineKernel::SCache::is_flat |
store whether indices were mirrored
Definition at line 104 of file splinekernel.hh.
| bool CSplineKernel::SCache::never_flat |
always use mirror
Definition at line 107 of file splinekernel.hh.
| int CSplineKernel::SCache::start_idx |
last start index the B-spline was evaluated for
Definition at line 89 of file splinekernel.hh.
| VWeight CSplineKernel::SCache::weights |
cached weights
Definition at line 95 of file splinekernel.hh.
| double CSplineKernel::SCache::x |
last location the B-spline was evaluated at. This value is initialized to NaN to make sure we
Definition at line 86 of file splinekernel.hh.