Sequence | (void) ; |
Null sequence |
Sequence | (double *elt, unsigned int ln, int inidx = 0) ; |
Construct sequence from elements of array elt, with length ln and initial index inidx |
Sequence | (const floatVector& fv) ; |
Construct sequence from floatVector |
virtual ~Sequence | () ; |
Sequence | (const Sequence& s) ; |
Sequence operator= | (const Sequence& s) ; |
int initial | () const ; |
Index of first non-zero element |
int final | () const ; |
Index of last non-zero element |
unsigned int length | () const ; |
Length of sequence |
double coefficient | (unsigned int index) const ; |
Element at index (index must be between initial and final) |
double operator() | (int index) const ; |
Element at index, return 0 if index outside index range |
bool assign | (int index, double d) ; |
Assign element d to index |
Sequence operator+ | (const Sequence& s) const ; |
Add sequences |
Sequence operator- | (const Sequence& s) const ; |
Subtract sequences |
Sequence operator* | (const Sequence& s) const ; |
Convolve sequences |
virtual floatVectorRef operator* | (const floatVector& fv) const ; |
Convolve a sequence and a floatVector |
virtual floatVectorRef downscale | (const floatVector& fv) const ; |
virtual floatVectorRef upscale | (const floatVector& fv) const ; |
int argmax | () const ; |
Index of maximum element |
double max | () const ; |
Maximum element |
bool odd | () const ; |
Return true of sequence has off length |
bool even | () const ; |
Return true of sequence has even length |
int symmetry | () const ; |
Returns 0 for no symmetry, 1 for symmetry, -1 for anti-symmetry |
SeqFrequencyResponse fresponse | (unsigned int p) const ; |
SeqScaledDomain samplewidth | (double d) const ; |