GaussianNoise Class Reference

#include <GaussianNoise.h>

Inheritance diagram for GaussianNoise:

Inheritance graph
[legend]
Collaboration diagram for GaussianNoise:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 GaussianNoise (float level=1.0)
virtual ~GaussianNoise ()
virtual double getManagedDelay () const
virtual int nSpikeInputPorts () const
virtual int nSpikeOutputPorts () const
virtual int nAnalogInputPorts () const
virtual int nAnalogOutputPorts () const
virtual PortType outputPortType (port_t o) const
virtual PortType inputPortType (port_t i) const
virtual double getAnalogOutput (analog_port_id_t port=0) const
 Return the analog value currently associated with the given port.
virtual int reset (double dt)
 Called at the beginning of a simulation at t=0.
virtual int advance (AdvanceInfo const &)
 Calculate the next state and output/propagate the result to succesors/outgoing objects.
virtual int non_thread_safe_advance (AdvanceInfo const &)
virtual int plain_boost (AdvanceInfo const &)
virtual int no_action (AdvanceInfo const &)

Public Attributes

float level
 The amplitude of the noise.
double noise
 The actual output value.


Detailed Description

Definition at line 7 of file GaussianNoise.h.


Constructor & Destructor Documentation

GaussianNoise::GaussianNoise ( float  level = 1.0  ) 

Definition at line 5 of file GaussianNoise.cpp.

GaussianNoise::~GaussianNoise (  )  [virtual]

Definition at line 12 of file GaussianNoise.cpp.


Member Function Documentation

virtual double GaussianNoise::getManagedDelay (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 15 of file GaussianNoise.h.

virtual int GaussianNoise::nSpikeInputPorts (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 16 of file GaussianNoise.h.

virtual int GaussianNoise::nSpikeOutputPorts (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 17 of file GaussianNoise.h.

virtual int GaussianNoise::nAnalogInputPorts (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 18 of file GaussianNoise.h.

virtual int GaussianNoise::nAnalogOutputPorts (  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 19 of file GaussianNoise.h.

virtual PortType GaussianNoise::outputPortType ( port_t  o  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 20 of file GaussianNoise.h.

References SimObject::analog, and SimObject::undefined.

virtual PortType GaussianNoise::inputPortType ( port_t  i  )  const [inline, virtual]

Reimplemented from SimObject.

Definition at line 24 of file GaussianNoise.h.

References SimObject::undefined.

double GaussianNoise::getAnalogOutput ( analog_port_id_t  port = 0  )  const [virtual]

Return the analog value currently associated with the given port.

Reimplemented from SimObject.

Definition at line 15 of file GaussianNoise.cpp.

References noise.

int GaussianNoise::reset ( double  dt  )  [virtual]

Called at the beginning of a simulation at t=0.

Reimplemented from SimObject.

Definition at line 20 of file GaussianNoise.cpp.

References level, noise, and ThreadSpecificRandomDistribution< Dist >::set().

Here is the call graph for this function:

int GaussianNoise::advance ( AdvanceInfo const &   )  [virtual]

Calculate the next state and output/propagate the result to succesors/outgoing objects.

The return value of advance contains several bits of information which can be decoded with the bit masks ADVANCEFLAG_* like ADVANCEFLAG_HASSPIKED and ADVANCEFLAG_DEACTIVATE.

Reimplemented from SimObject.

Definition at line 27 of file GaussianNoise.cpp.

References level, and noise.

int GaussianNoise::non_thread_safe_advance ( AdvanceInfo const &   )  [virtual]

Definition at line 33 of file GaussianNoise.cpp.

References level, and noise.

int GaussianNoise::plain_boost ( AdvanceInfo const &   )  [virtual]

Definition at line 39 of file GaussianNoise.cpp.

References level, and noise.

int GaussianNoise::no_action ( AdvanceInfo const &   )  [virtual]

Definition at line 45 of file GaussianNoise.cpp.

References level, and noise.


Member Data Documentation

The amplitude of the noise.

Definition at line 38 of file GaussianNoise.h.

Referenced by advance(), no_action(), non_thread_safe_advance(), plain_boost(), and reset().

The actual output value.

Definition at line 41 of file GaussianNoise.h.

Referenced by advance(), getAnalogOutput(), no_action(), non_thread_safe_advance(), plain_boost(), and reset().


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

Generated on Wed Jul 9 16:34:50 2008 for PCSIM by  doxygen 1.5.5