Miind
DiffusionParameter.hpp
Go to the documentation of this file.
1 // Copyright (c) 2005 - 2014 Marc de Kamps
2 // All rights reserved.
3 //
4 // Redistribution and use in source and binary forms, with or without
5 // modification,are permitted provided that the following conditions are
6 // met
7 //
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above
11 // copyright notice, this list of
12 // conditions and the following disclaimer in the documentation
13 // and/or other materials provided with the distribution.
14 // * Neither the name of the copyright holder nor the names of its
15 // contributors may be used to endorse or promote products derived
16 // from this software without specific prior written permission.
17 //
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
21 // FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
22 // THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
23 // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24 // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
27 // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
29 // OF THE POSSIBILITY OF SUCH DAMAGE.
30 
31 #ifndef _CODE_LIBS_GEOMLIB_DIFFUSIONPARAMETER_INCLUDE_GUARD
32 #define _CODE_LIBS_GEOMLIB_DIFFUSIONPARAMETER_INCLUDE_GUARD
33 
34 
35 
36 namespace GeomLib {
37 
39 
45 
47 
50 
52  (
53  double diffusion_jump = 0.03,
54  double diffusion_limit = 0.03
55  ):
56  _diffusion_jump(diffusion_jump),
57  _diffusion_limit(diffusion_limit)
58  {
59  }
60 
61  };
62 } // namespace
63 
64 #endif // include guard
When to switch to a two Poisson input approximation, and what input jump to use then.
DiffusionParameter(double diffusion_jump=0.03, double diffusion_limit=0.03)