libatomprobe
Library for Atom Probe Tomography (APT) computation
Namespaces | Functions
sampling.h File Reference
#include <vector>
#include "atomprobe/primitives/ionHit.h"
#include "atomprobe/atomprobe.h"
#include "maths/lfsr.h"
#include <gsl/gsl_randist.h>
#include <gsl/gsl_rng.h>
Include dependency graph for sampling.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 AtomProbe
 

Functions

void AtomProbe::sampleIons (const std::vector< IonHit > &ions, float sampleFactor, std::vector< IonHit > &sampled, bool strongRandom=true)
 
template<class T >
size_t AtomProbe::randomSelect (std::vector< T > &result, const std::vector< T > &source, size_t num, gsl_rng *rng)
 
template<class T >
void AtomProbe::randomIndices (std::vector< T > &res, size_t num, size_t nMax, gsl_rng *rng)