FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::ExpectationWeight< W1, W2 > Class Template Reference

#include <expectation-weight.h>

Inheritance diagram for fst::ExpectationWeight< W1, W2 >:
Inheritance graph
[legend]
Collaboration diagram for fst::ExpectationWeight< W1, W2 >:
Collaboration graph
[legend]

Public Types

using ReverseWeight = ExpectationWeight< typename W1::ReverseWeight, typename W2::ReverseWeight >
 
- Public Types inherited from fst::PairWeight< W1, W2 >
using ReverseWeight = PairWeight< typename W1::ReverseWeight, typename W2::ReverseWeight >
 

Public Member Functions

 ExpectationWeight ()
 
 ExpectationWeight (const PairWeight< W1, W2 > &weight)
 
 ExpectationWeight (const W1 &w1, const W2 &w2)
 
ExpectationWeight Quantize (float delta=kDelta) const
 
ReverseWeight Reverse () const
 
bool Member () const
 
- Public Member Functions inherited from fst::PairWeight< W1, W2 >
 PairWeight ()=default
 
 PairWeight (W1 w1, W2 w2)
 
std::istream & Read (std::istream &strm)
 
std::ostream & Write (std::ostream &strm) const
 
bool Member () const
 
size_t Hash () const
 
PairWeight< W1, W2 > Quantize (float delta=kDelta) const
 
ReverseWeight Reverse () const
 
const W1 & Value1 () const
 
const W2 & Value2 () const
 
void SetValue1 (const W1 &weight)
 
void SetValue2 (const W2 &weight)
 

Static Public Member Functions

static const ExpectationWeightZero ()
 
static const ExpectationWeightOne ()
 
static const ExpectationWeightNoWeight ()
 
static const std::string & Type ()
 
static constexpr uint64_t Properties ()
 
- Static Public Member Functions inherited from fst::PairWeight< W1, W2 >
static const PairWeight< W1, W2 > & Zero ()
 
static const PairWeight< W1, W2 > & One ()
 
static const PairWeight< W1, W2 > & NoWeight ()
 

Detailed Description

template<class W1, class W2>
class fst::ExpectationWeight< W1, W2 >

Definition at line 62 of file expectation-weight.h.

Member Typedef Documentation

template<class W1, class W2>
using fst::ExpectationWeight< W1, W2 >::ReverseWeight = ExpectationWeight<typename W1::ReverseWeight, typename W2::ReverseWeight>

Definition at line 72 of file expectation-weight.h.

Constructor & Destructor Documentation

template<class W1, class W2>
fst::ExpectationWeight< W1, W2 >::ExpectationWeight ( )
inline

Definition at line 74 of file expectation-weight.h.

template<class W1, class W2>
fst::ExpectationWeight< W1, W2 >::ExpectationWeight ( const PairWeight< W1, W2 > &  weight)
inlineexplicit

Definition at line 76 of file expectation-weight.h.

template<class W1, class W2>
fst::ExpectationWeight< W1, W2 >::ExpectationWeight ( const W1 &  w1,
const W2 &  w2 
)
inline

Definition at line 79 of file expectation-weight.h.

Member Function Documentation

template<class W1, class W2>
bool fst::ExpectationWeight< W1, W2 >::Member ( ) const
inline

Definition at line 110 of file expectation-weight.h.

template<class W1, class W2>
static const ExpectationWeight& fst::ExpectationWeight< W1, W2 >::NoWeight ( )
inlinestatic

Definition at line 91 of file expectation-weight.h.

template<class W1, class W2>
static const ExpectationWeight& fst::ExpectationWeight< W1, W2 >::One ( )
inlinestatic

Definition at line 86 of file expectation-weight.h.

template<class W1, class W2>
static constexpr uint64_t fst::ExpectationWeight< W1, W2 >::Properties ( )
inlinestatic

Definition at line 112 of file expectation-weight.h.

template<class W1, class W2>
ExpectationWeight fst::ExpectationWeight< W1, W2 >::Quantize ( float  delta = kDelta) const
inline

Definition at line 102 of file expectation-weight.h.

template<class W1, class W2>
ReverseWeight fst::ExpectationWeight< W1, W2 >::Reverse ( ) const
inline

Definition at line 106 of file expectation-weight.h.

template<class W1, class W2>
static const std::string& fst::ExpectationWeight< W1, W2 >::Type ( )
inlinestatic

Definition at line 96 of file expectation-weight.h.

template<class W1, class W2>
static const ExpectationWeight& fst::ExpectationWeight< W1, W2 >::Zero ( )
inlinestatic

Definition at line 81 of file expectation-weight.h.


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