Edinburgh Speech Tools  2.1-release
EST_FeatureSample Class Reference

#include <include/EST_FeatureData.h>

Inheritance diagram for EST_FeatureSample:
Collaboration diagram for EST_FeatureSample:

Public Member Functions

 EST_FeatureSample ()
 
 EST_FeatureSample (const EST_FeatureSample &a)
 
- Public Member Functions inherited from EST_TVector< T >
INLINE ssize_t vcell_pos (ssize_t c, ssize_t cs) const
 The memory access rule, in one place for easy reference. More...
 
INLINE ssize_t vcell_pos (ssize_t c) const
 
INLINE ssize_t vcell_pos_1 (ssize_t c) const
 
INLINE const T & fast_a_v (int c) const
 quick method for returning (x[n]) More...
 
INLINE T & fast_a_v (int c)
 
INLINE const T & fast_a_1 (int c) const
 
INLINE T & fast_a_1 (int c)
 
void set_values (const T *data, int step, int start_c, int num_c)
 Get and set values from array. More...
 
void get_values (T *data, int step, int start_c, int num_c) const
 
void copy (const EST_TVector< T > &a)
 private copy function, called from all other copying functions. More...
 
void copy_data (const EST_TVector< T > &a)
 just copy data, no resizing, no size check. More...
 
void just_resize (int new_cols, T **old_vals)
 resize the memory and reset the bounds, but don't set values. More...
 
void default_vals ()
 sets data and length to default values (0 in both cases). More...
 
 EST_TVector ()
 default constructor More...
 
 EST_TVector (const EST_TVector< T > &v)
 copy constructor More...
 
 EST_TVector (ssize_t n)
 "size" constructor - make vector of size n. More...
 
 EST_TVector (int, T *memory, int offset=0, int free_when_destroyed=0)
 construct from memory supplied by caller More...
 
 ~EST_TVector ()
 destructor. More...
 
void resize (ssize_t n, int set=1)
 
const T * memory () const
 
T * memory ()
 
void set_memory (T *buffer, int offset, ssize_t columns, int free_when_destroyed=0)
 
EST_TVectoroperator= (const EST_TVector &s)
 assignment operator More...
 
void fill (const T &v)
 Fill entire array will value v. More...
 
void empty ()
 Fill vector with default value. More...
 
int operator== (const EST_TVector &v) const
 is true if vectors are equal size and all elements are equal. More...
 
int operator!= (const EST_TVector &v) const
 is true if vectors are not equal size or a single elements isn't equal. More...
 
void copy_section (T *dest, int offset=0, int num=-1) const
 Copy data in and out. Subclassed by SimpleVector for speed. More...
 
void set_section (const T *src, int offset=0, int num=-1)
 
void sub_vector (EST_TVector< T > &sv, int start_c=0, int len=-1)
 Create a sub vector. More...
 
void integrity () const
 
template<>
const EST_DMatrixdef_val
 
template<>
EST_DMatrixerror_return
 
template<>
const EST_DVectordef_val
 
template<>
EST_DVectorerror_return
 
template<>
const EST_FMatrixdef_val
 
template<>
EST_FMatrixerror_return
 
INLINE ssize_t num_columns () const
 number of items in vector. More...
 
INLINE ssize_t length () const
 number of items in vector. More...
 
INLINE ssize_t n () const
 number of items in vector. More...
 
INLINE const T & a_no_check (ssize_t n) const
 read-only const access operator: without bounds checking More...
 
INLINE T & a_no_check (ssize_t n)
 read/write non-const access operator: without bounds checking More...
 
INLINE const T & a_no_check_1 (ssize_t n) const
 read-only const access operator: without bounds checking More...
 
INLINE T & a_no_check_1 (ssize_t n)
 read/write non-const access operator: without bounds checking More...
 
const T & a_check (ssize_t n) const
 read-only const access operator: with bounds checking More...
 
T & a_check (ssize_t n)
 read/write non-const access operator: with bounds checking More...
 
const T & a (ssize_t n) const
 
T & a (ssize_t n)
 
const T & operator() (ssize_t n) const
 read-only const access operator: return reference to nth member More...
 
T & operator[] (ssize_t n)
 read/write non const access operator: return reference to nth member More...
 

Additional Inherited Members

- Public Attributes inherited from EST_TVector< T >
T * p_memory
 
ssize_t p_num_columns
 Visible shape. More...
 
ssize_t p_offset
 How to access the memory. More...
 
ssize_t p_column_step
 
bool p_sub_matrix
 
- Static Public Attributes inherited from EST_TVector< T >
static const T * def_val = &def_val_item_ptr
 default value, used for filling matrix after resizing More...
 
static T * error_return = &error_return_item_ptr
 

Detailed Description

A class for containing arbitrary multi-dimensional feature data.

A number of fields are defined in the EST_FeatureData class, each of which represents a measurable quantity, such as height, age or gender. Any number of fields can be defined and each field can take a float, integer or string value. The class holds multiple instances of field values, representing samples taken from a population.

Several statistical training, testing and analysis programs use EST_FeatureData as input and output. Member functions exist for comparing fields, extracting given named or numbered fields, can converting appropriate fields to a EST_FMatrix.

Definition at line 71 of file EST_FeatureData.h.

Constructor & Destructor Documentation

EST_FeatureSample::EST_FeatureSample ( )
EST_FeatureSample::EST_FeatureSample ( const EST_FeatureSample a)

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