FST
openfst-1.8.4
OpenFst Library
|
#include <signed-log-weight.h>
Public Types | |
using | W1 = TropicalWeight |
using | W2 = LogWeightTpl< T > |
using | ReverseWeight = SignedLogWeightTpl |
![]() | |
using | ReverseWeight = PairWeight< typename TropicalWeight::ReverseWeight, typename LogWeightTpl< T >::ReverseWeight > |
Public Member Functions | |
SignedLogWeightTpl () noexcept | |
SignedLogWeightTpl (const W2 &w2) | |
SignedLogWeightTpl (const PairWeight< W1, W2 > &weight) | |
SignedLogWeightTpl (const W1 &w1, const W2 &w2) | |
bool | IsPositive () const |
SignedLogWeightTpl | Quantize (float delta=kDelta) const |
ReverseWeight | Reverse () const |
bool | Member () const |
size_t | Hash () const |
![]() | |
PairWeight ()=default | |
PairWeight (TropicalWeightw1, LogWeightTpl< T >w2) | |
std::istream & | Read (std::istream &strm) |
std::ostream & | Write (std::ostream &strm) const |
bool | Member () const |
size_t | Hash () const |
PairWeight< TropicalWeight, LogWeightTpl< T > > | Quantize (float delta=kDelta) const |
ReverseWeight | Reverse () const |
const TropicalWeight & | Value1 () const |
const LogWeightTpl< T > & | Value2 () const |
void | SetValue1 (const TropicalWeight &weight) |
void | SetValue2 (const LogWeightTpl< T > &weight) |
Static Public Member Functions | |
static const SignedLogWeightTpl & | Zero () |
static const SignedLogWeightTpl & | One () |
static const SignedLogWeightTpl & | NoWeight () |
static const std::string & | Type () |
static constexpr uint64_t | Properties () |
![]() | |
static const PairWeight< TropicalWeight, LogWeightTpl< T > > & | Zero () |
static const PairWeight< TropicalWeight, LogWeightTpl< T > > & | One () |
static const PairWeight< TropicalWeight, LogWeightTpl< T > > & | NoWeight () |
Definition at line 45 of file signed-log-weight.h.
using fst::SignedLogWeightTpl< T >::ReverseWeight = SignedLogWeightTpl |
Definition at line 49 of file signed-log-weight.h.
using fst::SignedLogWeightTpl< T >::W1 = TropicalWeight |
Definition at line 47 of file signed-log-weight.h.
using fst::SignedLogWeightTpl< T >::W2 = LogWeightTpl<T> |
Definition at line 48 of file signed-log-weight.h.
|
inlinenoexcept |
Definition at line 54 of file signed-log-weight.h.
|
inline |
Definition at line 58 of file signed-log-weight.h.
|
inlineexplicit |
Definition at line 60 of file signed-log-weight.h.
|
inline |
Definition at line 63 of file signed-log-weight.h.
|
inline |
Definition at line 103 of file signed-log-weight.h.
|
inline |
Definition at line 86 of file signed-log-weight.h.
|
inline |
Definition at line 96 of file signed-log-weight.h.
|
inlinestatic |
Definition at line 75 of file signed-log-weight.h.
|
inlinestatic |
Definition at line 70 of file signed-log-weight.h.
|
inlinestatic |
Definition at line 99 of file signed-log-weight.h.
|
inline |
Definition at line 88 of file signed-log-weight.h.
|
inline |
Definition at line 92 of file signed-log-weight.h.
|
inlinestatic |
Definition at line 80 of file signed-log-weight.h.
|
inlinestatic |
Definition at line 65 of file signed-log-weight.h.