Exemplo n.º 1
0
"""

A template for integrating a new model  using the default
Generic2dOscillator with complete docstrings and comments.

.. moduleauthor:: TVB-Team

"""

# Third party python libraries
import numpy
import numexpr

#The Virtual Brain
from tvb.simulator.common import get_logger
LOG = get_logger(__name__)

import tvb.datatypes.arrays as arrays
import tvb.basic.traits.types_basic as basic 
import tvb.simulator.models as models



class Generic2dOscillator(models.Model):
    """
    The Generic2dOscillator model is a generic dynamic system with two
    state variables. The dynamic equations of this model are composed
    of two ordinary differential equations comprising two nullclines.
    The first nullcline is a cubic function as it is found in most
    neuron and population models; the  second nullcline is arbitrarily
    configurable as a polynomial function up to second order. The
Exemplo n.º 2
0
#   Frontiers in Neuroinformatics (7:10. doi: 10.3389/fninf.2013.00010)
#
#
"""
The original Wong and Wang model
.. moduleauthor:: Paula Sanz Leon <*****@*****.**>
.. moduleauthor:: Marmaduke Woodman <*****@*****.**>
.. moduleauthor:: Stuart A. Knock <*****@*****.**>
"""

# Third party python libraries
import numpy

#The Virtual Brain
from tvb.simulator.common import get_logger
LOG = get_logger(__name__)

from tvb.basic.neotraits.api import NArray, Range, List, Final
import tvb.simulator.models as models

#import tvb.datatypes.arrays as arrays
#import tvb.basic.traits.types_basic as basic
import tvb.simulator.models as models


class WongWang(models.Model):
    """
    .. [WW_2006] Kong-Fatt Wong and Xiao-Jing Wang,  *A Recurrent Network 
                Mechanism of Time Integration in Perceptual Decisions*. 
                Journal of Neuroscience 26(4), 1314-1328, 2006.
    .. [WW_2006_SI] Supplementary Information
Exemplo n.º 3
0
 def __init__(self, **kwargs):
     super(ProgressLogger, self).__init__(**kwargs)
     self.logger = get_logger('Sim Progress')