sapt::SamplingBias Class Reference

#include <ug_sampling_bias.h>

Inheritance diagram for sapt::SamplingBias:

Inheritance graph

List of all members.

Public Member Functions

 SamplingBias (std::vector< id_type > const *sid2docid)
SPTR< std::map< std::string,
float > const > 
getBiasMap ()
virtual float operator[] (id_type const ID) const =0
virtual size_t size () const =0
virtual int GetClass (id_type const ID) const

Public Attributes

int loglevel
std::ostream * log
SPTR< std::map< std::string,
float > > 

Protected Attributes

std::vector< id_type > const * m_sid2docid

Detailed Description

Definition at line 19 of file ug_sampling_bias.h.

Constructor & Destructor Documentation

sapt::SamplingBias::SamplingBias ( std::vector< id_type > const *  sid2docid  ) 

Definition at line 41 of file

Member Function Documentation

SPTR< std::map< std::string, float > const > sapt::SamplingBias::getBiasMap (  ) 

Definition at line 86 of file

References m_bias_map.

int sapt::SamplingBias::GetClass ( id_type const   ID  )  const [virtual]

Definition at line 47 of file

References m_sid2docid.

virtual float sapt::SamplingBias::operator[] ( id_type const   ID  )  const [pure virtual]

virtual size_t sapt::SamplingBias::size (  )  const [pure virtual]

Member Data Documentation

std::ostream* sapt::SamplingBias::log

Definition at line 26 of file ug_sampling_bias.h.

Referenced by sapt::DocumentBias::DocumentBias().

Definition at line 25 of file ug_sampling_bias.h.

SPTR<std::map<std::string, float> > sapt::SamplingBias::m_bias_map

Definition at line 28 of file ug_sampling_bias.h.

Referenced by getBiasMap(), and sapt::DocumentBias::init().

std::vector<id_type> const* sapt::SamplingBias::m_sid2docid [protected]

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

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