#include <fst/accumulator.h>

Public Types | |
| typedef A | Arc |
| typedef A::StateId | StateId |
| typedef A::Weight | Weight |
Public Member Functions | |
| FastLogAccumulator (ssize_t arc_limit=20, ssize_t arc_period=10) | |
| FastLogAccumulator (const FastLogAccumulator< A > &acc) | |
| ~FastLogAccumulator () | |
| void | SetState (StateId s) |
| Weight | Sum (Weight w, Weight v) |
| template<class ArcIterator > | |
| Weight | Sum (Weight w, ArcIterator *aiter, ssize_t begin, ssize_t end) |
| template<class F > | |
| void | Init (const F &fst, bool copy=false) |
This class accumulates arc weights using the log semiring Plus() assuming an arc weight that has a member 'float Value()' and a float constructor. The member function Init(fst) has to be called to setup pre-computed weight information.
Definition at line 153 of file accumulator.h.
| typedef A fst::FastLogAccumulator< A >::Arc |
Definition at line 155 of file accumulator.h.
| typedef A::StateId fst::FastLogAccumulator< A >::StateId |
Definition at line 156 of file accumulator.h.
| typedef A::Weight fst::FastLogAccumulator< A >::Weight |
Definition at line 157 of file accumulator.h.
| fst::FastLogAccumulator< A >::FastLogAccumulator | ( | ssize_t | arc_limit = 20, |
|
| ssize_t | arc_period = 10 | |||
| ) | [inline, explicit] |
Definition at line 159 of file accumulator.h.
| fst::FastLogAccumulator< A >::FastLogAccumulator | ( | const FastLogAccumulator< A > & | acc | ) | [inline] |
Definition at line 165 of file accumulator.h.
| fst::FastLogAccumulator< A >::~FastLogAccumulator | ( | ) | [inline] |
Definition at line 172 of file accumulator.h.
| void fst::FastLogAccumulator< A >::Init | ( | const F & | fst, | |
| bool | copy = false | |||
| ) | [inline] |
Definition at line 230 of file accumulator.h.
| void fst::FastLogAccumulator< A >::SetState | ( | StateId | s | ) | [inline] |
Definition at line 177 of file accumulator.h.
| Weight fst::FastLogAccumulator< A >::Sum | ( | Weight | w, | |
| ArcIterator * | aiter, | |||
| ssize_t | begin, | |||
| ssize_t | end | |||
| ) | [inline] |
Definition at line 195 of file accumulator.h.
| Weight fst::FastLogAccumulator< A >::Sum | ( | Weight | w, | |
| Weight | v | |||
| ) | [inline] |
Definition at line 190 of file accumulator.h.
1.7.1