|
template<typename IteratorBegin , typename IteratorEnd > |
FIT_RESULT | compute (const IteratorBegin &begin, const IteratorEnd &end) |
| Convenience function for STL-like iterators
|
|
template<typename IndexRange , typename PointContainer > |
FIT_RESULT | computeWithIds (IndexRange ids, const PointContainer &points) |
| Convenience function to iterate over a subset of samples in a PointContainer
|
|
bool | addNeighbor (const DataPoint &_nei) |
| Add a neighbor to perform the fit.
|
|
FIT_RESULT | compute (const Container &c) |
| Convenience function for STL-like container
|
|
FIT_RESULT | compute (const IteratorBegin &begin, const IteratorEnd &end) |
| Convenience function for STL-like iterators.
|
|
FIT_RESULT | computeWithIds (IndexRange, const PointContainer &) |
| Convenience function to iterate over a subset of samples in a PointContainer.
|
|
template<class P, class W, template< class, class, typename > class Ext0, template< class, class, typename > class... Exts>
class Ponca::Basket< P, W, Ext0, Exts >
Aggregator class used to declare specialized structures using CRTP.
This is one of the central classes of the library (even if it does not perform any computation on its own). Checkout Fitting Module: User Manual for more details.
The various implementations of Ponca::Concept are mixed through specializations of the Basket class:
typedef
WeightFuncImpl,
ComputationalObjectConcept1,
ComputationalObjectConcept2,
... ,
> myFit;
Aggregator class used to declare specialized structures using CRTP.
- See also
- BasketDiff for the aggregation of ComputationalDerivativesConcept
- Template Parameters
-
Definition at line 242 of file basket.h.
template<class P , class W , template< class, class, typename > class Ext0, template< class, class, typename > class... Exts>
using Ponca::Basket< P, W, Ext0, Exts >::Base = typename internal::BasketAggregate<P, W, Ext0, Exts...>::type |
Base type, which aggregates all the computational objects using the CRTP.
Definition at line 249 of file basket.h.
template<class P , class W , template< class, class, typename > class Ext0, template< class, class, typename > class... Exts>
Point type used for computation.
Definition at line 253 of file basket.h.
template<class P , class W , template< class, class, typename > class Ext0, template< class, class, typename > class... Exts>
using Ponca::Basket< P, W, Ext0, Exts >::Scalar = typename P::Scalar |
Scalar type used for computation, as defined from template parameter P
Definition at line 251 of file basket.h.
template<class P , class W , template< class, class, typename > class Ext0, template< class, class, typename > class... Exts>
Weighting function.
Definition at line 255 of file basket.h.
template<class P , class W , template< class, class, typename > class Ext0, template< class, class, typename > class... Exts>
Add a neighbor to perform the fit.
When called directly, don't forget to call PrimitiveBase::startNewPass when starting multiple passes
- See also
- compute Prefer when using a range of Points
-
computeWithIds Prefer when using a range of ids
- Returns
- false if param nei is not a valid neighbor (weight = 0)
Definition at line 266 of file basket.h.
template<class P , class W , template< class, class, typename > class Ext0, template< class, class, typename > class... Exts>
template<typename IteratorBegin , typename IteratorEnd >
Convenience function for STL-like iterators
Add neighbors stored in a container using STL-like iterators, and call finalize at the end.
The fit is evaluated multiple time if needed (see NEED_OTHER_PASS)
- See also
- addNeighbor()
Definition at line 258 of file basket.h.
template<class P , class W , template< class, class, typename > class Ext0, template< class, class, typename > class... Exts>
template<typename IndexRange , typename PointContainer >
Convenience function to iterate over a subset of samples in a PointContainer
Add neighbors stored in a PointContainer and sampled using indices stored in ids.
- Template Parameters
-
IndexRange | STL-Like range storing indices of the neighbors |
PointContainer | STL-like container storing the points |
- See also
- compute(const IteratorBegin& begin, const IteratorEnd& end)
Definition at line 258 of file basket.h.