FeatureStats Class Reference

#include <FeatureStats.h>

Collaboration diagram for FeatureStats:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 FeatureStats ()
 FeatureStats (const std::size_t size)
 FeatureStats (std::string &theString)
 ~FeatureStats ()
 FeatureStats (const FeatureStats &stats)
FeatureStatsoperator= (const FeatureStats &stats)
void Copy (const FeatureStats &stats)
bool isfull () const
void expand ()
void add (FeatureStatsType v)
void addSparse (const std::string &name, FeatureStatsType v)
void clear ()
void reset ()
FeatureStatsType get (std::size_t i)
FeatureStatsType get (std::size_t i) const
featstats_t getArray () const
const SparseVectorgetSparse () const
void set (std::string &theString)
std::size_t bytes () const
std::size_t GetArraySizeWithBytes () const
std::size_t size () const
std::size_t available () const
void savetxt (const std::string &file)
void savetxt (std::ostream *os)
void savebin (std::ostream *os)
void savetxt ()
void loadtxt (const std::string &file)
void loadtxt (std::istream *is)
void loadbin (std::istream *is)

Friends

std::ostream & operator<< (std::ostream &o, const FeatureStats &e)


Detailed Description

Definition at line 52 of file FeatureStats.h.


Constructor & Destructor Documentation

FeatureStats::FeatureStats (  ) 

Definition at line 123 of file FeatureStats.cpp.

FeatureStats::FeatureStats ( const std::size_t  size  )  [explicit]

FeatureStats::FeatureStats ( std::string &  theString  )  [explicit]

FeatureStats::~FeatureStats (  ) 

Definition at line 140 of file FeatureStats.cpp.

References NULL.

FeatureStats::FeatureStats ( const FeatureStats stats  ) 

Definition at line 157 of file FeatureStats.cpp.

References Copy().

Here is the call graph for this function:


Member Function Documentation

void FeatureStats::add ( FeatureStatsType  v  ) 

Definition at line 178 of file FeatureStats.cpp.

References expand(), and isfull().

Here is the call graph for this function:

void FeatureStats::addSparse ( const std::string &  name,
FeatureStatsType  v 
)

std::size_t FeatureStats::available (  )  const [inline]

Definition at line 106 of file FeatureStats.h.

Referenced by Copy().

Here is the caller graph for this function:

std::size_t FeatureStats::bytes (  )  const [inline]

Definition at line 98 of file FeatureStats.h.

References GetArraySizeWithBytes().

Here is the call graph for this function:

void FeatureStats::clear (  )  [inline]

Definition at line 80 of file FeatureStats.h.

References SparseVector::clear(), and GetArraySizeWithBytes().

Referenced by reset().

Here is the call graph for this function:

Here is the caller graph for this function:

void FeatureStats::Copy ( const FeatureStats stats  ) 

Definition at line 148 of file FeatureStats.cpp.

References available(), getArray(), GetArraySizeWithBytes(), getSparse(), and size().

Referenced by FeatureStats(), and operator=().

Here is the call graph for this function:

Here is the caller graph for this function:

void FeatureStats::expand (  ) 

Definition at line 169 of file FeatureStats.cpp.

References GetArraySizeWithBytes().

Referenced by add().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 91 of file FeatureStats.h.

FeatureStatsType FeatureStats::get ( std::size_t  i  )  [inline]

Definition at line 90 of file FeatureStats.h.

Referenced by Point::operator*(), operator<<(), operator==(), and Data::removeDuplicates().

Here is the caller graph for this function:

featstats_t FeatureStats::getArray (  )  const [inline]

Definition at line 92 of file FeatureStats.h.

Referenced by Copy().

Here is the caller graph for this function:

std::size_t FeatureStats::GetArraySizeWithBytes (  )  const [inline]

Definition at line 100 of file FeatureStats.h.

Referenced by bytes(), clear(), Copy(), and expand().

Here is the caller graph for this function:

const SparseVector& FeatureStats::getSparse (  )  const [inline]

Definition at line 94 of file FeatureStats.h.

Referenced by Copy(), and operator<<().

Here is the caller graph for this function:

bool FeatureStats::isfull (  )  const [inline]

Definition at line 75 of file FeatureStats.h.

Referenced by add().

Here is the caller graph for this function:

void FeatureStats::loadbin ( std::istream *  is  ) 

void FeatureStats::loadtxt ( std::istream *  is  ) 

void FeatureStats::loadtxt ( const std::string &  file  ) 

FeatureStats & FeatureStats::operator= ( const FeatureStats stats  ) 

Definition at line 162 of file FeatureStats.cpp.

References Copy().

Here is the call graph for this function:

void FeatureStats::reset (  )  [inline]

Definition at line 85 of file FeatureStats.h.

References clear().

Here is the call graph for this function:

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

void FeatureStats::savetxt (  ) 

Definition at line 244 of file FeatureStats.cpp.

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

void FeatureStats::savetxt ( const std::string &  file  ) 

void FeatureStats::set ( std::string &  theString  ) 

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

Definition at line 104 of file FeatureStats.h.

Referenced by Copy(), operator<<(), operator==(), and Data::removeDuplicates().

Here is the caller graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const FeatureStats e 
) [friend]

Write the whole object to a stream.


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