|
IPPL API Reference
Independent Parallel Particle Layer C++ API
|
Functor that is used for generating samples. More...
#include <InverseTransformSampling.h>
Collaboration diagram for ippl::random::InverseTransformSampling< T, Dim, DeviceType, Distribution >::fill_random< GeneratorPool >:Public Types | |
| using | value_type = T |
Public Member Functions | |
| KOKKOS_FUNCTION | fill_random (Distribution &dist_r, view_type &x_r, GeneratorPool &rand_pool_r, Vector< T, Dim > &umin_r, Vector< T, Dim > &umax_r, unsigned int &d_r) |
| Constructor for the fill_random functor. | |
| KOKKOS_INLINE_FUNCTION void | operator() (const size_t i) const |
| Operator to fill random values. | |
Public Attributes | |
| Distribution | targetdist_m |
| view_type | sample_m |
| GeneratorPool | pool_m |
| Vector< T, Dim > | minbound_m |
| Vector< T, Dim > | maxbound_m |
| unsigned int | dim_m |
Functor that is used for generating samples.
|
inline |
Constructor for the fill_random functor.
| dist_ | The distribution to sample from. |
| x_ | The view to generate samples in. |
| rand_pool_ | The random number generator pool. |
| umin_ | Minimum cumulative distribution values. |
| umax_ | Maximum cumulative distribution values. |
|
inline |
Operator to fill random values.
| i | Index for the random values. |