Integer vector that tells if samples are acceptable for processing. More...
#include <KeepSignal.h>
Public Member Functions | |
void | debugPrint () const |
double | deltaT () const |
double | duration () const |
double | endTime () const |
KeepSignal () | |
KeepSignal (int n) | |
KeepSignal (const KeepSignal &o) | |
double | samplingFrequency () const |
void | setDeltaT (double newval) |
void | setT0 (double t) |
double | t0 () const |
TimeRange | timeRange () const |
Integer vector that tells if samples are acceptable for processing.
keep may take three distinct values:
GeopsyCore::KeepSignal::KeepSignal | ( | int | n | ) |
GeopsyCore::KeepSignal::KeepSignal | ( | const KeepSignal & | o | ) |
void GeopsyCore::KeepSignal::debugPrint | ( | ) | const |
References GeopsyCore::SignalTemplate< int >::_nSamples, CONST_LOCK_SAMPLES, TRACE, and UNLOCK_SAMPLES.
{ TRACE; printf( "Debug samples for signal %s\n", debugName().toAscii().data()); CONST_LOCK_SAMPLES(int, thisSamples, this) for(int i=0;i < _nSamples;i++ ) printf( "%i\t%i\n", i, thisSamples[ i ] ); UNLOCK_SAMPLES(this) }
double GeopsyCore::KeepSignal::deltaT | ( | ) | const [inline] |
double GeopsyCore::KeepSignal::duration | ( | ) | const [inline] |
{return _deltaT * _nSamples;}
double GeopsyCore::KeepSignal::endTime | ( | ) | const [inline] |
Referenced by GeopsyCore::SparseKeepSignal::intersection(), and GeopsyCore::SparseKeepSignal::remove().
{return _t0 + _deltaT * _nSamples;}
double GeopsyCore::KeepSignal::samplingFrequency | ( | ) | const [inline] |
{return 1.0/_deltaT;}
void GeopsyCore::KeepSignal::setDeltaT | ( | double | newval | ) | [inline] |
Referenced by GeopsyCore::SparseKeepSignal::setSampling().
{_deltaT=newval;}
void GeopsyCore::KeepSignal::setT0 | ( | double | t | ) | [inline] |
Referenced by GeopsyCore::SparseKeepSignal::setSampling().
{_t0=t;}
double GeopsyCore::KeepSignal::t0 | ( | ) | const [inline] |
Referenced by GeopsyCore::TimeRangeList::add(), GeopsyCore::SparseKeepSignal::initValues(), GeopsyCore::SparseKeepSignal::intersection(), GeopsyCore::SparseKeepSignal::remove(), GeopsyCore::StationSignals::setKeep(), GeopsyCore::SparseKeepSignal::setSampling(), and GeopsyCore::GeopsyCoreEngine::showSignal().
{return _t0;}
TimeRange GeopsyCore::KeepSignal::timeRange | ( | ) | const [inline] |
{return TimeRange(_t0, endTime());}