npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
resampleWithReplacement.hh File Reference

Resampling with replacement from a vector of points. More...

#include <vector>
#include <cassert>
#include <stdexcept>
#include "npstat/rng/AbsRandomGenerator.hh"

Go to the source code of this file.

Namespaces

 npstat
 

Functions

template<typename T >
void npstat::resampleWithReplacement (AbsRandomGenerator &gen, const std::vector< T > &from, std::vector< T > *to, const unsigned long sampleSizeWanted)
 

Detailed Description

Resampling with replacement from a vector of points.

Author: I. Volobouev

May 2022