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

#include <expectation-weight.h>

Inheritance diagram for fst::ExpectationWeight< X1, X2 >:
Inheritance graph
[legend]
Collaboration diagram for fst::ExpectationWeight< X1, X2 >:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

 ExpectationWeight ()
 
 ExpectationWeight (const PairWeight< X1, X2 > &weight)
 
 ExpectationWeight (const X1 &x1, const X2 &x2)
 
PairWeight< X1, X2 > Quantize (float delta=kDelta) const
 
ReverseWeight Reverse () const
 
bool Member () const
 
- Public Member Functions inherited from fst::PairWeight< X1, X2 >
 PairWeight ()
 
 PairWeight (X1w1, X2w2)
 
std::istream & Read (std::istream &strm)
 
std::ostream & Write (std::ostream &strm) const
 
bool Member () const
 
size_t Hash () const
 
PairWeight< X1, X2 > Quantize (float delta=kDelta) const
 
ReverseWeight Reverse () const
 
const X1 & Value1 () const
 
const X2 & Value2 () const
 
void SetValue1 (const X1 &weight)
 
void SetValue2 (const X2 &weight)
 

Static Public Member Functions

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

Detailed Description

template<class X1, class X2>
class fst::ExpectationWeight< X1, X2 >

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

Member Typedef Documentation

template<class X1, class X2>
using fst::ExpectationWeight< X1, X2 >::ReverseWeight = ExpectationWeight<typename X1::ReverseWeight, typename X2::ReverseWeight>

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

Constructor & Destructor Documentation

template<class X1, class X2>
fst::ExpectationWeight< X1, X2 >::ExpectationWeight ( )
inline

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

template<class X1, class X2>
fst::ExpectationWeight< X1, X2 >::ExpectationWeight ( const PairWeight< X1, X2 > &  weight)
inlineexplicit

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

template<class X1, class X2>
fst::ExpectationWeight< X1, X2 >::ExpectationWeight ( const X1 &  x1,
const X2 &  x2 
)
inline

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

Member Function Documentation

template<class X1, class X2>
bool fst::ExpectationWeight< X1, X2 >::Member ( ) const
inline

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

template<class X1, class X2>
static const ExpectationWeight& fst::ExpectationWeight< X1, X2 >::NoWeight ( )
inlinestatic

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

template<class X1, class X2>
static const ExpectationWeight& fst::ExpectationWeight< X1, X2 >::One ( )
inlinestatic

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

template<class X1, class X2>
static constexpr uint64 fst::ExpectationWeight< X1, X2 >::Properties ( )
inlinestatic

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

template<class X1, class X2>
PairWeight<X1, X2> fst::ExpectationWeight< X1, X2 >::Quantize ( float  delta = kDelta) const
inline

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

template<class X1, class X2>
ReverseWeight fst::ExpectationWeight< X1, X2 >::Reverse ( ) const
inline

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

template<class X1, class X2>
static const string& fst::ExpectationWeight< X1, X2 >::Type ( )
inlinestatic

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

template<class X1, class X2>
static const ExpectationWeight& fst::ExpectationWeight< X1, X2 >::Zero ( )
inlinestatic

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


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