MosesTuning::FeatureArray Class Reference

#include <FeatureArray.h>

List of all members.

Public Member Functions

 FeatureArray ()
 ~FeatureArray ()
void clear ()
int getIndex () const
void setIndex (const int 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, const SparseVector &sparseWeights, std::size_t n)
void loadbin (std::istream *is, std::size_t n)
void load (std::istream *is, const SparseVector &sparseWeights)
bool check_consistency () const


Detailed Description

Definition at line 25 of file FeatureArray.h.


Constructor & Destructor Documentation

MosesTuning::FeatureArray::FeatureArray (  ) 

Definition at line 21 of file FeatureArray.cpp.

MosesTuning::FeatureArray::~FeatureArray (  ) 

Definition at line 24 of file FeatureArray.cpp.


Member Function Documentation

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

Definition at line 58 of file FeatureArray.h.

Referenced by MosesTuning::FeatureData::add(), and merge().

Here is the caller graph for this function:

bool MosesTuning::FeatureArray::check_consistency (  )  const

Definition at line 149 of file FeatureArray.cpp.

References NumberOfFeatures().

Here is the call graph for this function:

void MosesTuning::FeatureArray::clear (  )  [inline]

Definition at line 39 of file FeatureArray.h.

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

Definition at line 88 of file FeatureArray.h.

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

Definition at line 85 of file FeatureArray.h.

Referenced by MosesTuning::FeatureData::add().

Here is the caller graph for this function:

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

Definition at line 54 of file FeatureArray.h.

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

Definition at line 51 of file FeatureArray.h.

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

Here is the caller graph for this function:

int MosesTuning::FeatureArray::getIndex (  )  const [inline]

Definition at line 44 of file FeatureArray.h.

Referenced by MosesTuning::FeatureData::add().

Here is the caller graph for this function:

void MosesTuning::FeatureArray::load ( std::istream *  is,
const SparseVector sparseWeights 
)

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

void MosesTuning::FeatureArray::loadtxt ( std::istream *  is,
const SparseVector sparseWeights,
std::size_t  n 
)

void MosesTuning::FeatureArray::merge ( FeatureArray e  ) 

Definition at line 142 of file FeatureArray.cpp.

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

Here is the call graph for this function:

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

Definition at line 81 of file FeatureArray.h.

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

Definition at line 78 of file FeatureArray.h.

Referenced by MosesTuning::FeatureData::add(), and check_consistency().

Here is the caller graph for this function:

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

Definition at line 67 of file FeatureArray.h.

Referenced by MosesTuning::Data::removeDuplicates().

Here is the caller graph for this function:

void MosesTuning::FeatureArray::save ( bool  bin = false  ) 

Definition at line 70 of file FeatureArray.cpp.

References save().

Here is the call graph for this function:

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

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

Referenced by save().

Here is the caller graph for this function:

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

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

void MosesTuning::FeatureArray::setIndex ( const int  value  )  [inline]

Definition at line 47 of file FeatureArray.h.

Referenced by MosesTuning::FeatureData::add().

Here is the caller graph for this function:

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

Definition at line 74 of file FeatureArray.h.

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

Here is the caller graph for this function:

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

Definition at line 63 of file FeatureArray.h.

Referenced by MosesTuning::Data::removeDuplicates().

Here is the caller graph for this function:


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

Generated on Thu Jul 6 00:34:15 2017 for Moses by  doxygen 1.5.9