datastructs_samplers_base_mod Module

This module implements the basic structure for weighted samplers


Uses

  • module~~datastructs_samplers_base_mod~~UsesGraph module~datastructs_samplers_base_mod datastructs_samplers_base_mod module~datastructs_kinds_mod datastructs_kinds_mod module~datastructs_samplers_base_mod->module~datastructs_kinds_mod iso_fortran_env iso_fortran_env module~datastructs_kinds_mod->iso_fortran_env

Used by

  • module~~datastructs_samplers_base_mod~~UsedByGraph module~datastructs_samplers_base_mod datastructs_samplers_base_mod module~datastructs_mod datastructs_mod module~datastructs_mod->module~datastructs_samplers_base_mod module~datastructs_samplers_mod datastructs_samplers_mod module~datastructs_mod->module~datastructs_samplers_mod module~datastructs_samplers_btree_mod datastructs_samplers_btree_mod module~datastructs_samplers_btree_mod->module~datastructs_samplers_base_mod module~datastructs_samplers_mod->module~datastructs_samplers_base_mod module~datastructs_samplers_rejection_maxheap_composition_mod datastructs_samplers_rejection_maxheap_composition_mod module~datastructs_samplers_rejection_maxheap_composition_mod->module~datastructs_samplers_base_mod module~datastructs_samplers_rejection_maxheap_composition_mod->module~datastructs_samplers_btree_mod module~datastructs_samplers_rejection_maxheap_mod datastructs_samplers_rejection_maxheap_mod module~datastructs_samplers_rejection_maxheap_composition_mod->module~datastructs_samplers_rejection_maxheap_mod module~datastructs_samplers_rejection_maxheap_mod->module~datastructs_samplers_base_mod module~datastructs_samplers_rejection_maxheap_two_classes_mod datastructs_samplers_rejection_maxheap_two_classes_mod module~datastructs_samplers_rejection_maxheap_two_classes_mod->module~datastructs_samplers_base_mod module~datastructs_samplers_rejection_maxheap_two_classes_mod->module~datastructs_samplers_rejection_maxheap_mod module~datastructs_samplers_rejection_mod datastructs_samplers_rejection_mod module~datastructs_samplers_rejection_mod->module~datastructs_samplers_base_mod module~datastructs_samplers_rejection_two_classes_mod datastructs_samplers_rejection_two_classes_mod module~datastructs_samplers_rejection_two_classes_mod->module~datastructs_samplers_base_mod module~datastructs_samplers_rejection_two_classes_mod->module~datastructs_samplers_rejection_mod proc~choose_sampler choose_sampler proc~choose_sampler->module~datastructs_samplers_btree_mod proc~choose_sampler->module~datastructs_samplers_rejection_maxheap_composition_mod proc~choose_sampler->module~datastructs_samplers_rejection_maxheap_mod proc~choose_sampler->module~datastructs_samplers_rejection_maxheap_two_classes_mod proc~choose_sampler->module~datastructs_samplers_rejection_mod proc~choose_sampler->module~datastructs_samplers_rejection_two_classes_mod

Derived Types

type, public, abstract ::  sampler_base_t

Base type for all samplers

Components

Type Visibility Attributes Name Initial
real(kind=dp), public, allocatable :: weights(:)
integer(kind=i4), public :: n = 0

Type-Bound Procedures

procedure(i_init_n), public, deferred :: init_n
procedure(i_init_w), public, deferred :: init_w
procedure(i_init_w2), public, deferred :: init_w2
generic, public :: init => init_n, init_w, init_w2
procedure(i_reset), public, deferred :: reset
procedure(i_set_weight), public, deferred :: set_weight
procedure(i_set_weight_array), public, deferred :: set_weight_array
procedure(i_add_weight), public, deferred :: add_weight
procedure(i_sample), public, deferred :: sample
procedure(i_remove), public, deferred :: remove
procedure(i_sum), public, deferred :: sum