Construct a CDF sampler from given weights.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | w(:) |
Construct a CDF sampler from given weights.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | w(:) | |||
real(kind=dp), | intent(in) | :: | total |