FST
openfst-1.8.2
OpenFst Library
|
#include <power-weight.h>
Public Types | |
using | ReverseWeight = PowerWeight< typename W::ReverseWeight, n > |
![]() | |
using | ReverseWeight = TupleWeight< typename W::ReverseWeight, n > |
using | Weight = W |
using | Index = size_t |
Public Member Functions | |
PowerWeight () | |
PowerWeight (const TupleWeight< W, n > &weight) | |
template<class Iterator > | |
PowerWeight (Iterator begin, Iterator end) | |
PowerWeight (size_t index, const W &weight, const W &default_weight=W::Zero()) | |
PowerWeight | Quantize (float delta=kDelta) const |
ReverseWeight | Reverse () const |
![]() | |
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 PowerWeight & | Zero () |
static const PowerWeight & | One () |
static const PowerWeight & | NoWeight () |
static const std::string & | Type () |
static constexpr uint64_t | Properties () |
![]() | |
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 44 of file power-weight.h.
using fst::PowerWeight< W, n >::ReverseWeight = PowerWeight<typename W::ReverseWeight, n> |
Definition at line 46 of file power-weight.h.
|
inline |
Definition at line 48 of file power-weight.h.
|
inlineexplicit |
Definition at line 50 of file power-weight.h.
|
inline |
Definition at line 54 of file power-weight.h.
|
inline |
Definition at line 58 of file power-weight.h.
|
inlinestatic |
Definition at line 72 of file power-weight.h.
|
inlinestatic |
Definition at line 67 of file power-weight.h.
|
inlinestatic |
Definition at line 83 of file power-weight.h.
|
inline |
Definition at line 88 of file power-weight.h.
|
inline |
Definition at line 92 of file power-weight.h.
|
inlinestatic |
Definition at line 77 of file power-weight.h.
|
inlinestatic |
Definition at line 62 of file power-weight.h.