class DVector Data Vector class.
| | DVType DVector data type enumeration. |
| | size_type Size and index data type. |
| | DVector (void) Default constructor. |
| | ~DVector () Destructor. |
| | clone (void) const Duplicate a DVector. |
| | Erase (size_type inx, size_type length) Erase a subset of a vector. |
| | Extract (size_type length) const Extract a subset of a vector. |
| | Extract (size_type inx, size_type length) const Extract a subset of a vector. |
| | Extract (size_type inx, size_type length, size_type inc) const Extract a subset of a vector. |
| | getType (void) const Get the data type |
| | getTypeName (void) const Get the data type name. |
| | S_data (void) const Test for short int data. |
| | I_data (void) const Test for float data. |
| | F_data (void) const Test for float data. |
| | D_data (void) const Test for float data. |
| | C_data (void) const Test for fComplex data. |
| | getSize (void) const Get the size of a data word. |
| | getLength (void) const Get the data length. |
| | capacity (void) const Get the vector capacity |
| | ReSize (size_type len) Expand the vector storage. |
| | reserve (size_type len) Insure a minimum number of words. |
| | refData (void) Get a pointer to the data. |
| | refData (void) const Get a constant pointer to the data. |
| | getData (size_type inx, size_type Ndata, short Data[]) const Copy/Convert data into a short integer array. |
| | getData (size_type inx, size_type Ndata, int Data[]) const Copy/Convert data into a float array. |
| | getData (size_type inx, size_type Ndata, float Data[]) const Copy/Convert data into a float array. |
| | getData (size_type inx, size_type Ndata, double Data[]) const Copy/Convert data into a float array. |
| | getData (size_type inx, size_type Ndata, fComplex Data[]) const Copy/Convert data into a complex array. |
| | getShort (size_type inx) const Get one data word. |
| | getInt (size_type inx) const Get one data word. |
| | getFloat (size_type inx) const Get one data word. |
| | getDouble (size_type inx) const Get one data word. |
| | getCplx (size_type inx) const Get one data word. |
| | getMaximum (void) const Maximum data value. |
| | getMinimum (void) const Minimum data value. |
| | getNBetween (double low, double high) const Number of entries greater than limit. |
| | getNGreater (double limit) const Number of entries greater than limit. |
| | getNLess (double limit) const Number of entries less than limit. |
| | insert (size_type inx, const DVector& v, size_type inx2=0, size_type N=0) Inset data from a vector into the curret vector. |
| | replace (size_type inx, size_type N, const DVector& v, size_type inv, size_type Nv) Replace data from a sub-vector into the curret vector. |
| | replace (size_type inx, size_type N, const DVector& v) Replace data from a vector into the curret vector. |
| | add (size_type inx, const DVector& v, size_type inx2=0, size_type N=0) Add two vectors |
| | bias (size_type inx, double x, size_type N=0) Add a constant to a vector |
| | sub (size_type inx, const DVector& v, size_type inx2=0, size_type N=0) Subtract two vectors |
| | mpy (size_type inx, const DVector& v, size_type inx2=0, size_type N=0) Multiply two vectors |
| | scale (size_type inx, double x, size_type N=0) Multiply a vector by a constant |
| | div (size_type inx, const DVector& v, size_type inx2=0, size_type N=0) Divide two vectors |
| | dot (size_type inx, const DVector& v, size_type inx2=0, size_type N=0) const Inner product |
| | cdot (size_type inx, const DVector& v, size_type inx2=0, size_type N=0) const Comples inner product. |
| | VSum (size_type inx=0, size_type N=0) const Sum N data words. |
| | CSum (size_type inx=0, size_type N=0) const Sum N data words. |
| | operator* (const DVector& rhs) const Inner product. |
| | operator = (const DVector& rhs) Assignment operator. |
| | operator== (const DVector& rhs) const Comparison operator. |
| | operator+= (const DVector& rhs) Add a DVector. |
| | operator-= (const DVector& rhs) Subtract a DVector. |
| | operator+= (double rhs) Bias a DVector. |
| | operator-= (double rhs) Bias a DVector (negative). |
| | operator*= (double rhs) Scale a DVector. |
| | operator/= (double rhs) Scale a DVector (divide). |
| | operator*= (const DVector& rhs) Element by element multiplication of DVector. |
| | operator/= (const DVector& rhs) Divide by a DVector. |
| | Dump (std::ostream& out) const Dump the vector contents. |
| | Append (size_type N, const short* data) Append short integer data to a vector. |
| | Append (size_type N, const int* data) Append integer data to a vector. |
| | Append (size_type N, const float* data) Append float data to a vector. |
| | Append (size_type N, const double* data) Append double float data to a vector. |
| | Append (size_type N, const fComplex* data) Append complex data to a vector. |
| | Append (const DVector& data) Append a DVector to a DVector. |
| | Clear (void) Clear a DVector. |
| | Conjugate (void) Conjugate a DVector. |
| | Extend (size_type N) Extend a DVector. |
The data vector holds a variable length data vector of arbitrary type. Methods are provided to convert data to a requested type independent of the internal representation of the data. DVector are primarily used for time and frequency series.
typedef unsigned long size_type
DVector(void)
the data length.
virtual ~DVector()
virtual DVector* clone(void) const
virtual void Erase(size_type inx, size_type length)
length - Number of data elements to be extracted.
virtual DVector* Extract(size_type length) const
virtual DVector* Extract(size_type inx, size_type length) const
length - number of data elements to be extracted.
virtual DVector* Extract(size_type inx, size_type length, size_type inc) const
length - Number of elements to be extracted
inc - Index increment between successive extracted elements.
virtual DVType getType(void) const
const char* getTypeName(void) const
bool S_data(void) const
bool I_data(void) const
bool F_data(void) const
bool D_data(void) const
bool C_data(void) const
virtual size_type getSize(void) const
virtual size_type getLength(void) const
virtual size_type capacity(void) const
virtual void ReSize(size_type len)
virtual void reserve(size_type len)
virtual void* refData(void)
virtual const void* refData(void) const
virtual size_type getData(size_type inx, size_type Ndata, short Data[]) const
Ndata - Maximum number of data words to be copied.
Data - Output short integer array.
virtual size_type getData(size_type inx, size_type Ndata, int Data[]) const
Ndata - Maximum number of data words to be copied.
Data - Output integer array.
virtual size_type getData(size_type inx, size_type Ndata, float Data[]) const
Ndata - Maximum number of data words to be copied.
Data - Output float array.
virtual size_type getData(size_type inx, size_type Ndata, double Data[]) const
Ndata - Maximum number of data words to be copied.
Data - Output double float array.
virtual size_type getData(size_type inx, size_type Ndata, fComplex Data[]) const
Ndata - Maximum number of data words to be copied.
Data - Output complex array.
virtual short getShort(size_type inx) const
virtual int getInt(size_type inx) const
virtual float getFloat(size_type inx) const
virtual double getDouble(size_type inx) const
virtual fComplex getCplx(size_type inx) const
virtual double getMaximum(void) const
virtual double getMinimum(void) const
virtual size_type getNBetween(double low, double high) const
virtual size_type getNGreater(double limit) const
virtual size_type getNLess(double limit) const
virtual DVector& insert(size_type inx, const DVector& v, size_type inx2=0, size_type N=0)
v - Vector containing data to be inserted.
inx2 - index in v of the data to be inserted.
N - Number of words to be inserted
virtual DVector& replace(size_type inx, size_type N, const DVector& v, size_type inv, size_type Nv)
0 <= inx+N < len and 0 <= inv+Nv < v.len.
N - Number of words to be replaced
v - Vector containing data to be inserted.
inv - index in v of the data to be inserted.
Nv - Number of words to be inserted
DVector& replace(size_type inx, size_type N, const DVector& v)
N - Number of words to be replaced
v - Vector containing data to be inserted.
virtual DVector& add(size_type inx, const DVector& v, size_type inx2=0, size_type N=0)
v - Vector to be added
inx2 - index in the
N - Number of words to be added
virtual DVector& bias(size_type inx, double x, size_type N=0)
x - Constant to be added
N - Number of words to be added
virtual DVector& sub(size_type inx, const DVector& v, size_type inx2=0, size_type N=0)
v - Vector to be added
inx2 - index in the
N - Number of words to be added
virtual DVector& mpy(size_type inx, const DVector& v, size_type inx2=0, size_type N=0)
v - Vector to be added
inx2 - index in the
N - Number of words to be added
virtual DVector& scale(size_type inx, double x, size_type N=0)
x - Constant to be added
N - Number of words to be added
virtual DVector& div(size_type inx, const DVector& v, size_type inx2=0, size_type N=0)
v - Vector to be added
inx2 - index in the
N - Number of words to be added
virtual double dot(size_type inx, const DVector& v, size_type inx2=0, size_type N=0) const
v - Vector to be added
inx2 - index in the
N - Number of words to be added
virtual fComplex cdot(size_type inx, const DVector& v, size_type inx2=0, size_type N=0) const
v - Vector to be added
inx2 - index in the
N - Number of words to be added
virtual double VSum(size_type inx=0, size_type N=0) const
N - Number of words to be summed.
virtual fComplex CSum(size_type inx=0, size_type N=0) const
N - Number of words to be summed.
virtual double operator*(const DVector& rhs) const
.
If the right hand side operand is complex, it is conjugated
before the multiplication.
virtual DVector& operator =(const DVector& rhs)
virtual bool operator==(const DVector& rhs) const
virtual DVector& operator+=(const DVector& rhs)
virtual DVector& operator-=(const DVector& rhs)
virtual DVector& operator+=(double rhs)
DVector& operator-=(double rhs)
virtual DVector& operator*=(double rhs)
virtual DVector& operator/=(double rhs)
virtual DVector& operator*=(const DVector& rhs)
virtual DVector& operator/=(const DVector& rhs)
virtual std::ostream& Dump(std::ostream& out) const
void Append(size_type N, const short* data)
data - short integer data array.
void Append(size_type N, const int* data)
data - integer data to be appended to the DVector.
void Append(size_type N, const float* data)
data - float data to be appended to the DVector.
void Append(size_type N, const double* data)
data - double float data to be appended to the DVector.
void Append(size_type N, const fComplex* data)
data - complex data to be appended to the DVector.
void Append(const DVector& data)
void Clear(void)
virtual void Conjugate(void)
virtual void Extend(size_type N)
alphabetic index hierarchy of classes
Please send questions and comments to zweizig_j@ligo.caltech.edu
generated by doc++