TSpecTrack Class Reference

#include <procedures.h>

Collaboration diagram for TSpecTrack:
Collaboration graph

Public Member Functions

 TSpecTrack (int ACapacity=50)
 
void InsertPeak (TSpecPeak &APeak, int index)
 
int LocatePeak (TSpecPeak &APeak)
 
int Add (TSpecPeak &APeak)
 

Data Fields

int t1
 
int t2
 
double fmin
 
double fmax
 
int Count
 
TSpecPeakPeaks
 

Detailed Description

TSpecTrack is a class that maintains a list of TSpecPeak objects that form a spectral track. It models a sinusid track in sinusoid modeling.

Constructor & Destructor Documentation

TSpecTrack::TSpecTrack ( int  ACapacity = 50)

method TSpecTrack::TSpecTrack: creates a SpecTrack with an inital capacity.

In: ACapacity: initial capacity, i.e. the number SpecPeak's to allocate storage space for.

Member Function Documentation

int TSpecTrack::Add ( TSpecPeak APeak)

method TSpecTrack::Add: adds a SpecPeak to the track.

In: APeak: the SpecPeak to add.

void TSpecTrack::InsertPeak ( TSpecPeak APeak,
int  index 
)

method InsertPeak: inserts a new SpecPeak into the track at a given index. Internal use only.

In: APeak: the SpecPeak to insert. index: the position in the list to place the new SpecPeak. Original SpecPeak's at and after this position are shifted by 1 posiiton.

int TSpecTrack::LocatePeak ( TSpecPeak APeak)

method TSpecTrack::LocatePeak: looks for a SpecPeak in the track that has the same time (t) as APeak.

In: APeak: a SpecPeak

Returns the index in this track of the first SpecPeak that has the same time stamp as APeak. However, if there is no peak with that time stamp, the method returns -1 if APeaks comes before the first SpecPeak, -2 if between 1st and 2nd SpecPeak's, -3 if between 2nd and 3rd SpecPeak's, etc.


The documentation for this class was generated from the following files: