Miind
GeomParameter.cpp
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 #include "GeomParameter.hpp"
32 
33 using namespace GeomLib;
34 
36 (
37  const AbstractOdeSystem& sys,
38  const string& name_master,
39  const DiffusionParameter& par_diff,
40  const CurrentCompensationParameter& par_cur,
41  Potential scale,
42  bool no_master_equation
43 ):
44 _p_sys_ode (sys.Clone()),
45 _name_master (name_master),
46 _scale (scale),
47 _par_diff (par_diff),
48 _par_cur (par_cur),
49 _no_master_equation (no_master_equation)
50 {
51 }
52 
54 (
55  const GeomParameter& par
56 ):
57 _p_sys_ode (par._p_sys_ode->Clone()),
58 _name_master (par._name_master),
59 _scale (par._scale),
60 _par_diff (par._par_diff),
61 _par_cur (par._par_cur),
62 _no_master_equation (par._no_master_equation)
63 {
64 }
65 
double Potential
A geometric grid to represent population densities.
When to switch to a two Poisson input approximation, and what input jump to use then.
const CurrentCompensationParameter _par_cur
Parameter for setting current compensation values for the neural models that use it.
const DiffusionParameter _par_diff
std::unique_ptr< AbstractOdeSystem > _p_sys_ode
Parameter for the configuration of a GeomAlgorithm object. Users of SpikingOdeSystem should read the ...
GeomParameter(const AbstractOdeSystem &sys, const string &name_master="NumericalMasterEquation", const DiffusionParameter &par_diff=DiffusionParameter(0.03, 0.03), const CurrentCompensationParameter &par_cur=CurrentCompensationParameter(0., 0.), Potential scale=1.0, bool no_master_equations=false)
virtual AbstractOdeSystem * Clone() const =0