an integer timeSeries for temporal segmentation of experimental data More...
#include <stateFlag.h>
Inherits timeSeries< int >.

Classes | |
| class | iterator |
| iterates over edges in a stateFlag More... | |
Public Member Functions | |
| stateFlag (std::string varnam, dataFile &df) | |
| template<class T > | |
| stateFlag (const char *vn, const char *sn, timeSeries< T > &ts) | |
| template<class T > | |
| stateFlag (const timeSeries< T > ts) | |
| stateFlag | range (int beg, int end) |
| stateFlag | range (double t0, double tf) |
| stateFlag | range (state &s) |
| std::vector< int > | rising () const |
| std::vector< int > | falling () const |
| std::vector< state > | findStates (const transition &tbegin, const transition &tend) const |
| std::vector< state > | findStates () const |
| template<class C > | |
| iterator< C > | begin () |
| template<class C > | |
| iterator< C > | end () |
Friends | |
| class | timeSeries |
an integer timeSeries for temporal segmentation of experimental data
A stateFlag object contains discrete data that is used to delineate specific sections of a experiment for analysis.
See the main documentation page for detailed information about how to use the stateFlag class.
camp_utilities.h, campVIRTTEXAnalysis.cpp, hmi04.cpp, hmi04.h, hmi04_utilities.cpp, and hmi04_utilities.h.
| stateFlag::stateFlag | ( | std::string | varnam, | |
| dataFile & | df | |||
| ) | [inline] |
stateFlag constructor
| varnam | a string that selects the field contained in the dataFile containing the stateFlag | |
| df | a dataFile object that contains the data on which the stateFlag will be based |
The named field must be an integer or an exception (BadType) will occur at runtime
| BadType |
| stateFlag::stateFlag | ( | const char * | vn, | |
| const char * | sn, | |||
| timeSeries< T > & | ts | |||
| ) | [inline] |
| stateFlag::stateFlag | ( | const timeSeries< T > | ts | ) | [inline] |
stateFlag constructor
| ts | the timeSeries object from which the stateFlag will be derived |
In this form of the constructor, the stateFlag names are implicitly generated from the existing timeSeries names by appending "<FLAG>" or "<F>" for the long name and short name respectively.
| iterator<C> stateFlag::begin | ( | ) | [inline] |
first edge
| iterator<C> stateFlag::end | ( | ) | [inline] |
last edge
| std::vector<int> stateFlag::falling | ( | ) | const [inline] |
find location of falling edges
| std::vector<state> stateFlag::findStates | ( | ) | const [inline] |
| std::vector<state> stateFlag::findStates | ( | const transition & | tbegin, | |
| const transition & | tend | |||
| ) | const [inline] |
find states contained within a stateFlag object
| tbegin | a transition object that matches the beginning of the state | |
| tend | a transition object that matches the end of the state |
| s | state |
States are simply pairs of indices that define a region. They usually arise from searches on stateFlag objects. Subranges are created by reference. No data is copied or moved.
Reimplemented from timeSeries< int >.
| stateFlag stateFlag::range | ( | double | t0, | |
| double | tf | |||
| ) | [inline] |
| t0 | begining time | |
| tf | ending time |
Subranges are created by reference. No data is copied or moved.
Reimplemented from timeSeries< int >.
| stateFlag stateFlag::range | ( | int | j, | |
| int | k | |||
| ) | [inline] |
| j | begining sample | |
| k | ending sample |
Subranges are created by reference. No data is copied or moved.
Reimplemented from timeSeries< int >.
| std::vector<int> stateFlag::rising | ( | ) | const [inline] |
find location of rising edges
1.6.3