40 #ifndef __EST_FeatureData_H__ 41 #define __EST_FeatureData_H__ 76 void free_internals();
77 void alloc_internals();
96 {return EST_ValVector::a(field);}
98 const EST_Val &a(int field) const
99 {return EST_ValVector::a(field);}
101 EST_Val &a(const EST_String &name)
102 {return EST_ValVector::a(info().field_index(name));}
104 const EST_Val &a(const EST_String &name) const
105 {return EST_ValVector::a(info().field_index(name));}
108 // const EST_Val &operator () (int sample, const EST_String &field);
110 EST_Val &operator () (const EST_String &field);
111 EST_Val &operator () (int field);
113 EST_FeatureSample &EST_FeatureSample::operator=
114 (const EST_FeatureSample &f);
116 friend ostream& operator << (ostream &st, const EST_FeatureSample &a);
129 void free_internals();
130 void alloc_internals();
149 void set_num_samples(
ssize_t num_samples,
bool preserve=1);
163 int feature_position(
const EST_String &feature_name);
INLINE ssize_t num_columns() const
number of items in vector.
bool save(Lattice &lattice, EST_String filename)
friend std::ostream & operator<<(std::ostream &st, const EST_TVector< T > &m)
print out vector.
bool load(Lattice &lattice, EST_String filename)
const T & a(ssize_t n) const
float max(float a, float b)
void resize(ssize_t n, int set=1)
EST_TVector< T > & copy(EST_TVector< T > a, const EST_TList< T > &in)
EST_TVector< EST_Val > EST_ValVector
void set_values(const T *data, int step, int start_c, int num_c)
Get and set values from array.
EST_TMatrix< EST_Val > EST_ValMatrix