#include <RegularStimulusZeroNetCharge.hpp>
Inherits RegularStimulus.
Public Member Functions | |
RegularStimulusZeroNetCharge (double magnitudeOfStimulus, double duration, double period, double startTime, double stopTime=DBL_MAX) | |
double | GetStimulus (double time) |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | boost::serialization::access |
Provides a periodic square-wave stimulus, where the total net charge is zero for every stimulus.
i.e., ------ | | | | --------- | ------------- | | | | ------
<-----------> Duration
Definition at line 53 of file RegularStimulusZeroNetCharge.hpp.
RegularStimulusZeroNetCharge::RegularStimulusZeroNetCharge | ( | double | magnitudeOfStimulus, | |
double | duration, | |||
double | period, | |||
double | startTime, | |||
double | stopTime = DBL_MAX | |||
) |
Create a new stimulus.
magnitudeOfStimulus | The size of the stimulus, both positive and negative | |
duration | How long the stimulus is applied for (time positive + time negative) | |
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 33 of file RegularStimulusZeroNetCharge.cpp.
Get the magnitude of stimulus at time 'time'. Re-implemented from parent class RegulsrStimulus.
time | The current time |
Reimplemented from RegularStimulus.
Definition at line 39 of file RegularStimulusZeroNetCharge.cpp.
References RegularStimulus::mDuration, RegularStimulus::mMagnitudeOfStimulus, RegularStimulus::mPeriod, RegularStimulus::mStartTime, and RegularStimulus::mStopTime.
void RegularStimulusZeroNetCharge::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Archive the simple stimulus, never used directly - boost uses this.
archive | ||
version |
Reimplemented from RegularStimulus.
Definition at line 65 of file RegularStimulusZeroNetCharge.hpp.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from RegularStimulus.
Definition at line 57 of file RegularStimulusZeroNetCharge.hpp.