aGetProb_2D Function

private elemental function aGetProb_2D(this, i, j, tgt) result(prob)

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 Bound

AliasSampler_2D_t

Arguments

Type IntentOptional Attributes Name
class(AliasSampler_2D_t), intent(in) :: this
integer, intent(in) :: i
integer, intent(in) :: j
integer, intent(in) :: tgt

Return Value real(kind=dp)


Contents

Source Code


Source Code

    elemental function aGetProb_2D(this, i, j, tgt) result(prob)
        class(AliasSampler_2D_t), intent(in) :: this
        integer, intent(in) :: i, j
        integer, intent(in) :: tgt
        real(dp) :: prob
        prob = this%alias_sampler%get_prob(i, j, 1, tgt)
    end function aGetProb_2D