FST
openfst-1.8.2.post1
OpenFst Library
|
#include <tuple-weight.h>
Public Types | |
using | ReverseWeight = TupleWeight< typename W::ReverseWeight, n > |
using | Weight = W |
using | Index = size_t |
Public Member Functions | |
template<class Iterator > | |
TupleWeight (Iterator begin, Iterator end) | |
TupleWeight (const W &weight=W::Zero()) | |
TupleWeight (Index index, const W &weight, const W &default_weight) | |
std::istream & | Read (std::istream &istrm) |
std::ostream & | Write (std::ostream &ostrm) const |
bool | Member () const |
size_t | Hash () const |
TupleWeight< W, n > | Quantize (float delta=kDelta) const |
ReverseWeight | Reverse () const |
const W & | Value (size_t i) const |
void | SetValue (size_t i, const W &w) |
Static Public Member Functions | |
static const TupleWeight< W, n > & | Zero () |
static const TupleWeight< W, n > & | One () |
static const TupleWeight< W, n > & | NoWeight () |
static constexpr size_t | Length () |
Definition at line 40 of file tuple-weight.h.
using fst::TupleWeight< W, n >::Index = size_t |
Definition at line 45 of file tuple-weight.h.
using fst::TupleWeight< W, n >::ReverseWeight = TupleWeight<typename W::ReverseWeight, n> |
Definition at line 42 of file tuple-weight.h.
using fst::TupleWeight< W, n >::Weight = W |
Definition at line 44 of file tuple-weight.h.
|
inline |
Definition at line 48 of file tuple-weight.h.
|
inlineexplicit |
Definition at line 52 of file tuple-weight.h.
|
inline |
Definition at line 56 of file tuple-weight.h.
|
inline |
Definition at line 92 of file tuple-weight.h.
|
inlinestatic |
Definition at line 76 of file tuple-weight.h.
|
inline |
Definition at line 88 of file tuple-weight.h.
|
inlinestatic |
Definition at line 71 of file tuple-weight.h.
|
inlinestatic |
Definition at line 66 of file tuple-weight.h.
|
inline |
Definition at line 98 of file tuple-weight.h.
|
inline |
Definition at line 78 of file tuple-weight.h.
|
inline |
Definition at line 106 of file tuple-weight.h.
|
inline |
Definition at line 114 of file tuple-weight.h.
|
inline |
Definition at line 112 of file tuple-weight.h.
|
inline |
Definition at line 83 of file tuple-weight.h.
|
inlinestatic |
Definition at line 61 of file tuple-weight.h.