FeatureArray Class Reference

#include <FeatureArray.h>

Collaboration diagram for FeatureArray:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 FeatureArray ()
 ~FeatureArray ()
void clear ()
bool hasSparseFeatures () const
std::string getIndex () const
void setIndex (const std::string &value)
FeatureStatsget (std::size_t i)
const FeatureStatsget (std::size_t i) const
void add (FeatureStats &e)
void swap (std::size_t i, std::size_t j)
void resize (std::size_t new_size)
void merge (FeatureArray &e)
std::size_t size () const
std::size_t NumberOfFeatures () const
void NumberOfFeatures (std::size_t v)
std::string Features () const
void Features (const std::string &f)
void savetxt (std::ostream *os)
void savebin (std::ostream *os)
void save (std::ostream *os, bool bin=false)
void save (const std::string &file, bool bin=false)
void save (bool bin=false)
void loadtxt (std::istream *is, std::size_t n)
void loadbin (std::istream *is, std::size_t n)
void load (std::istream *is)
void load (const std::string &file)
bool check_consistency () const


Detailed Description

Definition at line 21 of file FeatureArray.h.


Constructor & Destructor Documentation

FeatureArray::FeatureArray (  ) 

Definition at line 17 of file FeatureArray.cpp.

FeatureArray::~FeatureArray (  ) 

Definition at line 20 of file FeatureArray.cpp.


Member Function Documentation

void FeatureArray::add ( FeatureStats e  )  [inline]

Definition at line 46 of file FeatureArray.h.

Referenced by merge().

Here is the caller graph for this function:

bool FeatureArray::check_consistency (  )  const

Definition at line 156 of file FeatureArray.cpp.

References NumberOfFeatures().

Here is the call graph for this function:

void FeatureArray::clear (  )  [inline]

Definition at line 36 of file FeatureArray.h.

void FeatureArray::Features ( const std::string &  f  )  [inline]

Definition at line 66 of file FeatureArray.h.

std::string FeatureArray::Features (  )  const [inline]

Definition at line 65 of file FeatureArray.h.

const FeatureStats& FeatureArray::get ( std::size_t  i  )  const [inline]

Definition at line 44 of file FeatureArray.h.

FeatureStats& FeatureArray::get ( std::size_t  i  )  [inline]

Definition at line 43 of file FeatureArray.h.

Referenced by merge(), and Data::removeDuplicates().

Here is the caller graph for this function:

std::string FeatureArray::getIndex (  )  const [inline]

Definition at line 40 of file FeatureArray.h.

Referenced by FeatureData::add().

Here is the caller graph for this function:

bool FeatureArray::hasSparseFeatures (  )  const [inline]

Definition at line 38 of file FeatureArray.h.

void FeatureArray::load ( const std::string &  file  ) 

void FeatureArray::load ( std::istream *  is  ) 

void FeatureArray::loadbin ( std::istream *  is,
std::size_t  n 
)

void FeatureArray::loadtxt ( std::istream *  is,
std::size_t  n 
)

void FeatureArray::merge ( FeatureArray e  ) 

Definition at line 149 of file FeatureArray.cpp.

References add(), get(), and size().

Here is the call graph for this function:

void FeatureArray::NumberOfFeatures ( std::size_t  v  )  [inline]

Definition at line 63 of file FeatureArray.h.

std::size_t FeatureArray::NumberOfFeatures (  )  const [inline]

Definition at line 62 of file FeatureArray.h.

Referenced by check_consistency().

Here is the caller graph for this function:

void FeatureArray::resize ( std::size_t  new_size  )  [inline]

Definition at line 53 of file FeatureArray.h.

Referenced by Data::removeDuplicates().

Here is the caller graph for this function:

void FeatureArray::save ( bool  bin = false  ) 

Definition at line 66 of file FeatureArray.cpp.

References save().

Here is the call graph for this function:

void FeatureArray::save ( const std::string &  file,
bool  bin = false 
)

void FeatureArray::save ( std::ostream *  os,
bool  bin = false 
)

Referenced by save().

Here is the caller graph for this function:

void FeatureArray::savebin ( std::ostream *  os  ) 

void FeatureArray::savetxt ( std::ostream *  os  ) 

void FeatureArray::setIndex ( const std::string &  value  )  [inline]

Definition at line 41 of file FeatureArray.h.

std::size_t FeatureArray::size (  )  const [inline]

Definition at line 60 of file FeatureArray.h.

Referenced by merge(), and Data::removeDuplicates().

Here is the caller graph for this function:

void FeatureArray::swap ( std::size_t  i,
std::size_t  j 
) [inline]

Definition at line 49 of file FeatureArray.h.

Referenced by Data::removeDuplicates().

Here is the caller graph for this function:


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

Generated on Sat Jun 30 00:30:11 2012 for Moses by  doxygen 1.5.9