19 template <
typename Derived>
24 Derived&
derived() {
return static_cast<Derived&
>(*this); }
34 template <
typename Container>
36 return derived().compute(std::begin(c), std::end(c));
44 template <
typename IteratorBegin,
typename IteratorEnd>
54 template <
typename IndexRange,
typename Po
intContainer>
This Source Code Form is subject to the terms of the Mozilla Public License, v.
FIT_RESULT
Enum corresponding to the state of a fitting method (and what the finalize function returns)
@ UNDEFINED
The fitting is undefined, you can't use it for valid results.
ComputeObject is a virtual object that represents an algorithm which can be used with the compute fun...
FIT_RESULT computeWithIds(IndexRange, const PointContainer &)
Convenience function to iterate over a subset of samples in a PointContainer.
FIT_RESULT compute(const Container &c)
Convenience function for STL-like container.
Derived & derived()
Retrieve the top layer object Returns a reference to the derived class so that we can use its overwri...
FIT_RESULT compute(const IteratorBegin &, const IteratorEnd &)
Convenience function for STL-like iterators.