#include <RegularStimulus.hpp>


Public Member Functions | |
| RegularStimulus (double magnitudeOfStimulus, double duration, double period, double startTime, double stopTime=DBL_MAX) | |
| ~RegularStimulus () | |
| double | GetStimulus (double time) |
Private Attributes | |
| double | mMagnitudeOfStimulus |
| double | mDuration |
| double | mPeriod |
| double | mStartTime |
| double | mStopTime |
Definition at line 38 of file RegularStimulus.hpp.
| RegularStimulus::RegularStimulus | ( | double | magnitudeOfStimulus, | |
| double | duration, | |||
| double | period, | |||
| double | startTime, | |||
| double | stopTime = DBL_MAX | |||
| ) |
Constructor for RegularStimulus
| magnitudeOfStimulus | The size of the stimulus | |
| duration | How long the square wave is applied for | |
| period | The time between square waves being applied | |
| startTime | The time at which the first wave is applied | |
| stopTime | The time the stimulus is removed (defaults to DBL_MAX if omitted) |
Definition at line 43 of file RegularStimulus.cpp.
References mDuration, mMagnitudeOfStimulus, mPeriod, mStartTime, and mStopTime.
| RegularStimulus::~RegularStimulus | ( | ) |
Destructor
Definition at line 61 of file RegularStimulus.cpp.
| double RegularStimulus::GetStimulus | ( | double | time | ) | [virtual] |
Get the magnitude of stimulus at time 'time'
| time | The current time |
Implements AbstractStimulusFunction.
Definition at line 72 of file RegularStimulus.cpp.
References mDuration, mMagnitudeOfStimulus, mPeriod, mStartTime, and mStopTime.
double RegularStimulus::mMagnitudeOfStimulus [private] |
The 'height' of the square wave applied
Definition at line 42 of file RegularStimulus.hpp.
Referenced by GetStimulus(), and RegularStimulus().
double RegularStimulus::mDuration [private] |
The length of the square wave
Definition at line 44 of file RegularStimulus.hpp.
Referenced by GetStimulus(), and RegularStimulus().
double RegularStimulus::mPeriod [private] |
The time between applications of the wave
Definition at line 46 of file RegularStimulus.hpp.
Referenced by GetStimulus(), and RegularStimulus().
double RegularStimulus::mStartTime [private] |
The time at which the first wave is applied
Definition at line 48 of file RegularStimulus.hpp.
Referenced by GetStimulus(), and RegularStimulus().
double RegularStimulus::mStopTime [private] |
The time at which all stimuli are removed (even if halfway through a wave)
Definition at line 50 of file RegularStimulus.hpp.
Referenced by GetStimulus(), and RegularStimulus().
1.5.5