Bayeux  3.4.1
Core Foundation library for SuperNEMO
sampling_utils.h
Go to the documentation of this file.
1 //
4 // Copyright (c) 2016 by François Mauger <mauger@lpccaen.in2p3.fr>
5 //
6 // This file is part of Bayeux.
7 //
8 // Bayeux is free software: you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation, either version 3 of the License, or
11 // (at your option) any later version.
12 //
13 // Bayeux is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with Bayeux. If not, see <http://www.gnu.org/licenses/>.
20 
21 #ifndef MYGSL_SAMPLING_UTILS_H
22 #define MYGSL_SAMPLING_UTILS_H
23 
24 // Standard library:
25 #include <limits>
26 // #include <string>
27 
28 namespace mygsl {
29 
31  struct sampling
32  {
33 
35  static const std::size_t INVALID_INDEX = std::numeric_limits<std::size_t>::max();
36 
38  static const std::size_t MIN_NUMBER_OF_SAMPLING_VALUES = 2;
39 
58  };
59 
60  };
61 
62 } // end of namespace mygsl
63 
64 #endif // MYGSL_SAMPLING_UTILS_H
65 
66 // Local Variables: --
67 // mode: c++ --
68 // c-file-style: "gnu" --
69 // tab-width: 2 --
70 // End: --
static const std::size_t MIN_NUMBER_OF_SAMPLING_VALUES
Minimum number of sampling values in a valid sampling object.
Definition: sampling_utils.h:38
Definition: sampling_utils.h:57
static const std::size_t INVALID_INDEX
Invalid value for an index associated to classification != INDEX_NORMAL.
Definition: sampling_utils.h:35
index_classification_type
Definition: sampling_utils.h:53
Constants and resources used for sampling.
Definition: sampling_utils.h:31
Definition: sampling_utils.h:54
Definition: sampling_utils.h:56
Top-level namespace of the Bayeux/mygsl module library.
Definition: base_decay_driver.h:47
Definition: sampling_utils.h:55