herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
exsample::parametric_sampling_selector< Random > Class Template Reference

sampling selector selecting only bins which contain the given parameter point More...

#include <selectors.h>

Inheritance diagram for exsample::parametric_sampling_selector< Random >:

Public Member Functions

 parametric_sampling_selector ()
 the default constructor
 
 parametric_sampling_selector (std::vector< double > *p, bit_container< parameter_hash_bits > *bin_id, const std::vector< bool > &sample, const Random &rnd_gen)
 construct from reference to point, subtree hash, flags of variables to be sampled, and random number generator
 
std::pair< bool, bool > use (cell &parent, const cell &first_child, const cell &second_child) const
 return which of the children cells should be considered
 
bool use (cell &leaf) const
 return true, if the leaf cell should be considered
 
void compensate (bool doit=true)
 indicate that compensation is to take place
 

Private Attributes

std::vector< double > * point_
 the point chosen
 
bit_container< parameter_hash_bits > * bin_id_
 the corresponding bin id
 
std::vector< bool > sampled_variables_
 flags for variables to be sampled
 
Random rnd_gen_
 the random number generator
 
bool compensate_
 wether or not compensation is needed
 

Detailed Description

template<class Random>
class exsample::parametric_sampling_selector< Random >

sampling selector selecting only bins which contain the given parameter point

Definition at line 84 of file selectors.h.

Constructor & Destructor Documentation

◆ parametric_sampling_selector() [1/2]

template<class Random >
exsample::parametric_sampling_selector< Random >::parametric_sampling_selector ( )
inline

the default constructor

Definition at line 89 of file selectors.h.

◆ parametric_sampling_selector() [2/2]

template<class Random >
exsample::parametric_sampling_selector< Random >::parametric_sampling_selector ( std::vector< double > *  p,
bit_container< parameter_hash_bits > *  bin_id,
const std::vector< bool > &  sample,
const Random &  rnd_gen 
)
inline

construct from reference to point, subtree hash, flags of variables to be sampled, and random number generator

Definition at line 96 of file selectors.h.

Member Function Documentation

◆ compensate()

template<class Random >
void exsample::parametric_sampling_selector< Random >::compensate ( bool  doit = true)
inline

indicate that compensation is to take place

Definition at line 115 of file selectors.h.

References exsample::parametric_sampling_selector< Random >::compensate_.

Member Data Documentation

◆ bin_id_

template<class Random >
bit_container<parameter_hash_bits>* exsample::parametric_sampling_selector< Random >::bin_id_
private

the corresponding bin id

Definition at line 123 of file selectors.h.

◆ compensate_

template<class Random >
bool exsample::parametric_sampling_selector< Random >::compensate_
private

wether or not compensation is needed

Definition at line 132 of file selectors.h.

Referenced by exsample::parametric_sampling_selector< Random >::compensate().

◆ point_

template<class Random >
std::vector<double>* exsample::parametric_sampling_selector< Random >::point_
private

the point chosen

Definition at line 120 of file selectors.h.

◆ rnd_gen_

template<class Random >
Random exsample::parametric_sampling_selector< Random >::rnd_gen_
private

the random number generator

Definition at line 129 of file selectors.h.

◆ sampled_variables_

template<class Random >
std::vector<bool> exsample::parametric_sampling_selector< Random >::sampled_variables_
private

flags for variables to be sampled

Definition at line 126 of file selectors.h.


The documentation for this class was generated from the following file: