2 #include "StimulationVector.h"
6 StimulationVector::StimulationVector()
7 : vecptr(
std::make_shared<
std::vector<uint8_t>>(round2ui32(parameters.duration() * 10000), 0U)) {
16 vecptr->resize(durationsamples);
17 std::fill_n(
vecptr->begin(), onsetsamples, 0U);
18 std::vector<uint8_t>::iterator it(
vecptr->begin() + onsetsamples);
20 if ( (it + onsamples) >
vecptr->end() )
22 std::fill_n(it, onsamples, 2^8);
24 if ( (it + offsamples) >
vecptr->end() )
ScopeNumber< double > ontime
on time of one stimulation pulse
ScopeNumber< double > offtime
off time after stimulation pulse
parameters::Stimulation parameters
parameter set
ScopeNumber< double > onset
onset of stimulation
ScopeNumber< double > duration
total duration of stimulation
This is the include file for standard system include files, or project specific include files that ar...
void UpdateVector()
Recalculates the stimulation vector.
std::shared_ptr< std::vector< uint8_t > > const vecptr
pointer to data vector