randind_cdf Interface

public interface randind_cdf

Procedure for generating a random array index/subscripts

Called by

interface~~randind_cdf~~CalledByGraph interface~randind_cdf randind_cdf proc~get_nlaunch get_nlaunch proc~get_nlaunch->interface~randind_cdf proc~get_nlaunch_pass_grid get_nlaunch_pass_grid proc~get_nlaunch_pass_grid->interface~randind_cdf proc~dcx dcx proc~dcx->proc~get_nlaunch proc~fida_f fida_f proc~fida_f->proc~get_nlaunch proc~pnpa_f pnpa_f proc~pnpa_f->proc~get_nlaunch_pass_grid proc~halo halo proc~halo->proc~get_nlaunch proc~fida_weights_mc fida_weights_mc proc~fida_weights_mc->proc~get_nlaunch proc~npa_f npa_f proc~npa_f->proc~get_nlaunch proc~pfida_f pfida_f proc~pfida_f->proc~get_nlaunch_pass_grid program~fidasim fidasim program~fidasim->proc~dcx program~fidasim->proc~fida_f program~fidasim->proc~pnpa_f program~fidasim->proc~halo program~fidasim->proc~fida_weights_mc program~fidasim->proc~npa_f program~fidasim->proc~pfida_f

Contents


Module Procedures

private subroutine randind_r_cdf_1(r, cdf, randomi)

Generate an array of random indices of an 1D array distributed according to cdf

Arguments

TypeIntentOptionalAttributesName
type(rng_type), intent(inout) :: r

Random Number Generator

real(kind=Float64), intent(in), dimension(:):: cdf

1D array of index weights

integer, intent(out), dimension(:):: randomi

Random indices

private subroutine randind_cdf_1(cdf, randomi)

Generate an array of random indices of an 1D array distributed according to cdf

Arguments

TypeIntentOptionalAttributesName
real(kind=Float64), intent(in), dimension(:):: cdf

1D array of index weights

integer, intent(out), dimension(:):: randomi

Random indices