|
MCKL
Monte Carlo Kernel Library
|
#include <mckl/core/particle.hpp>
Public Types | |
| using | rng_set_type = RNGSetType< T > |
| using | rng_type = typename rng_set_type::rng_type |
| using | size_type = SizeType< T > |
| using | state_type = T |
| using | weight_type = WeightType< T > |
Public Member Functions | |
| Particle () | |
| Default constructor. More... | |
| template<typename... Args> | |
| Particle (size_type N, Args &&... args) | |
| Construct a particle system. More... | |
| ParticleIndex< T > | at (size_type i) |
| Get a ParticleIndex<T> object for the i-th particle. More... | |
| ParticleIndex< T > | begin () |
| Get a ParticleIndex<T> object for the first particle. More... | |
| Particle | clone () const |
| Clone the Particle except the RNG engines. More... | |
| ParticleIndex< T > | end () |
| Get a ParticleIndex<T> object for one pass the last particle. More... | |
| ParticleIndex< T > | operator[] (size_type i) |
| Get a ParticleIndex<T> object for the i-th particle. More... | |
| ParticleRange< T > | range (size_type grainsize=1) |
| Get a Range<ParticleItrator<T>> object of all particles. More... | |
| ParticleRange< T > | range (size_type ibegin, size_type iend, size_type grainsize=1) |
| Get a ParticleRange<T> object given a range denoted by integral values. More... | |
| rng_type & | rng (size_type i) |
| Get an (parallel) RNG stream for a given particle. More... | |
| const rng_type & | rng (size_type i) const |
| Get an (parallel) RNG stream for a given particle. More... | |
| rng_type & | rng () |
| Get the (sequential) RNG used stream for resampling. More... | |
| const rng_type & | rng () const |
| Get the (sequential) RNG used stream for resampling. More... | |
| rng_set_type & | rng_set () |
| Read and write access to the RNG collection object. More... | |
| const rng_set_type & | rng_set () const |
| Read only access to the RNG collection object. More... | |
| template<typename InputIter > | |
| void | select (size_type n, InputIter index) |
| Resize by selecting according to user supplied index vector. More... | |
| size_type | size () const |
| The number of particles. More... | |
| state_type & | state () |
| Read and write access to the state collection object. More... | |
| const state_type & | state () const |
| Read only access to the state collection object. More... | |
| weight_type & | weight () |
| Read and write access to the weight collection object. More... | |
| const weight_type & | weight () const |
| Read only access to the weight collection object. More... | |
Friends | |
| bool | operator!= (const Particle &p1, const Particle &p2) |
| bool | operator== (const Particle &p1, const Particle &p2) |
Particle system.
| T | The sample collection type |
A collection of particles is formed by,
Definition at line 45 of file particle.hpp.
| using mckl::Particle< T >::rng_set_type = RNGSetType<T> |
Definition at line 285 of file particle.hpp.
| using mckl::Particle< T >::rng_type = typename rng_set_type::rng_type |
Definition at line 286 of file particle.hpp.
| using mckl::Particle< T >::size_type = SizeType<T> |
Definition at line 282 of file particle.hpp.
| using mckl::Particle< T >::state_type = T |
Definition at line 283 of file particle.hpp.
| using mckl::Particle< T >::weight_type = WeightType<T> |
Definition at line 284 of file particle.hpp.
|
inline |
Default constructor.
Definition at line 289 of file particle.hpp.
|
inlineexplicit |
Construct a particle system.
All arguments are passed down to the constructor of T
Definition at line 299 of file particle.hpp.
|
inline |
Get a ParticleIndex<T> object for the i-th particle.
Definition at line 370 of file particle.hpp.
|
inline |
Get a ParticleIndex<T> object for the first particle.
Definition at line 385 of file particle.hpp.
|
inline |
Clone the Particle except the RNG engines.
Definition at line 308 of file particle.hpp.
|
inline |
Get a ParticleIndex<T> object for one pass the last particle.
Definition at line 388 of file particle.hpp.
|
inline |
Get a ParticleIndex<T> object for the i-th particle.
Definition at line 379 of file particle.hpp.
|
inline |
Get a Range<ParticleItrator<T>> object of all particles.
Definition at line 391 of file particle.hpp.
|
inline |
Get a ParticleRange<T> object given a range denoted by integral values.
Definition at line 398 of file particle.hpp.
|
inline |
Get an (parallel) RNG stream for a given particle.
Definition at line 352 of file particle.hpp.
|
inline |
Get an (parallel) RNG stream for a given particle.
Definition at line 358 of file particle.hpp.
|
inline |
Get the (sequential) RNG used stream for resampling.
Definition at line 364 of file particle.hpp.
|
inline |
Get the (sequential) RNG used stream for resampling.
Definition at line 367 of file particle.hpp.
|
inline |
Read and write access to the RNG collection object.
Definition at line 346 of file particle.hpp.
|
inline |
Read only access to the RNG collection object.
Definition at line 349 of file particle.hpp.
|
inline |
Resize by selecting according to user supplied index vector.
| n | The new sample size |
| index | N-vector of parent indices |
Definition at line 325 of file particle.hpp.
|
inline |
The number of particles.
Definition at line 318 of file particle.hpp.
|
inline |
Read and write access to the state collection object.
Definition at line 334 of file particle.hpp.
|
inline |
Read only access to the state collection object.
Definition at line 337 of file particle.hpp.
|
inline |
Read and write access to the weight collection object.
Definition at line 340 of file particle.hpp.
|
inline |
Read only access to the weight collection object.
Definition at line 343 of file particle.hpp.
Definition at line 410 of file particle.hpp.
Definition at line 405 of file particle.hpp.
1.8.13