GTSAM  4.0.2
C++ library for smoothing and mapping (SAM)
Public Member Functions | List of all members
gtsam::WeightedSampler< Engine > Class Template Reference

Public Member Functions

 WeightedSampler (Engine *engine)
 
std::vector< size_t > sampleWithoutReplacement (size_t numSamples, const std::vector< double > &weights)
 

Constructor & Destructor Documentation

◆ WeightedSampler()

template<class Engine = std::mt19937>
gtsam::WeightedSampler< Engine >::WeightedSampler ( Engine *  engine)
inlineexplicit

Construct from random number generation engine We only store a pointer to it.


The documentation for this class was generated from the following file: