get_prob_AliasSampler_t Function

private elemental function get_prob_AliasSampler_t(this, tgt) result(prob)

Returns the probability to draw tgt from this sampler

Type Bound

AliasSampler_t

Arguments

Type IntentOptional Attributes Name
class(AliasSampler_t), intent(in) :: this
integer, intent(in) :: tgt

the number for which we request the probability of sampling

Return Value real(kind=dp)

the probability of drawing tgt with the sample routine