FST
openfst-1.8.4
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 ()=default | |
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 43 of file power-weight.h.
using fst::PowerWeight< W, n >::ReverseWeight = PowerWeight<typename W::ReverseWeight, n> |
Definition at line 45 of file power-weight.h.
|
default |
|
inlineexplicit |
Definition at line 49 of file power-weight.h.
|
inline |
Definition at line 53 of file power-weight.h.
|
inline |
Definition at line 57 of file power-weight.h.
|
inlinestatic |
Definition at line 71 of file power-weight.h.
|
inlinestatic |
Definition at line 66 of file power-weight.h.
|
inlinestatic |
Definition at line 82 of file power-weight.h.
|
inline |
Definition at line 87 of file power-weight.h.
|
inline |
Definition at line 91 of file power-weight.h.
|
inlinestatic |
Definition at line 76 of file power-weight.h.
|
inlinestatic |
Definition at line 61 of file power-weight.h.