Returns the probability to draw tgt from the sampler with index iEntry @param[in] iEntry index of the sampler to use @param[in] tgt the number for which we request the probability of sampling @return prob the probability of drawing tgt with the sample routine
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(AliasSampler_1D_t), | intent(in) | :: | this | |||
integer, | intent(in) | :: | iEntry | |||
integer, | intent(in) | :: | tgt |
elemental function aGetProb_1D(this, iEntry, tgt) result(prob)
class(AliasSampler_1D_t), intent(in) :: this
integer, intent(in) :: iEntry
integer, intent(in) :: tgt
real(dp) :: prob
prob = this%alias_sampler%get_prob(iEntry, 1, 1, tgt)
end function aGetProb_1D