MosesTuning::MiraFeatureVector Class Reference

#include <MiraFeatureVector.h>

List of all members.

Public Member Functions

 MiraFeatureVector ()
 MiraFeatureVector (const FeatureDataItem &vec)
 MiraFeatureVector (const SparseVector &sparse, size_t num_dense)
 MiraFeatureVector (const MiraFeatureVector &other)
 MiraFeatureVector (const std::vector< ValType > &dense, const std::vector< std::size_t > &sparseFeats, const std::vector< ValType > &sparseVals)
ValType val (std::size_t index) const
std::size_t feat (std::size_t index) const
std::size_t size () const
ValType sqrNorm () const


MiraFeatureVector operator- (const MiraFeatureVector &a, const MiraFeatureVector &b)
std::ostream & operator<< (std::ostream &o, const MiraFeatureVector &e)
bool operator== (const MiraFeatureVector &a, const MiraFeatureVector &b)

Detailed Description

Definition at line 26 of file MiraFeatureVector.h.

Constructor & Destructor Documentation

MosesTuning::MiraFeatureVector::MiraFeatureVector (  )  [inline]

Definition at line 29 of file MiraFeatureVector.h.

MosesTuning::MiraFeatureVector::MiraFeatureVector ( const FeatureDataItem vec  ) 

Definition at line 38 of file MiraFeatureVector.cpp.

References MosesTuning::FeatureDataItem::sparse.

MosesTuning::MiraFeatureVector::MiraFeatureVector ( const SparseVector sparse,
size_t  num_dense 

Definition at line 44 of file MiraFeatureVector.cpp.

References MosesTuning::SparseVector::get().

Here is the call graph for this function:

MosesTuning::MiraFeatureVector::MiraFeatureVector ( const MiraFeatureVector other  ) 

Definition at line 54 of file MiraFeatureVector.cpp.

MosesTuning::MiraFeatureVector::MiraFeatureVector ( const std::vector< ValType > &  dense,
const std::vector< std::size_t > &  sparseFeats,
const std::vector< ValType > &  sparseVals 

Member Function Documentation

std::size_t MosesTuning::MiraFeatureVector::feat ( std::size_t  index  )  const

size_t MosesTuning::MiraFeatureVector::size (  )  const

ValType MosesTuning::MiraFeatureVector::sqrNorm (  )  const

Definition at line 100 of file MiraFeatureVector.cpp.

Referenced by main().

Here is the caller graph for this function:

ValType MosesTuning::MiraFeatureVector::val ( std::size_t  index  )  const

Friends And Related Function Documentation

MiraFeatureVector operator- ( const MiraFeatureVector a,
const MiraFeatureVector b 
) [friend]

Definition at line 110 of file MiraFeatureVector.cpp.

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

bool operator== ( const MiraFeatureVector a,
const MiraFeatureVector b 
) [friend]

Definition at line 168 of file MiraFeatureVector.cpp.

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

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