aSample_3D Subroutine

private subroutine aSample_3D(this, i, j, k, tgt, prob)

Draw a random element from 1:size(this%probs) with the probabilities listed in prob

Type Bound

AliasSampler_3D_t

Arguments

Type IntentOptional Attributes Name
class(AliasSampler_3D_t), intent(in) :: this
integer, intent(in) :: i

The index of the sampler.

integer, intent(in) :: j

The index of the sampler.

integer, intent(in) :: k

The index of the sampler.

integer, intent(out) :: tgt

The sampled value tgt.

real(kind=dp), intent(out) :: prob

The probability of sampling tgt.


Contents