FST  openfst-1.7.3
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::ArcSampler< Arc, FastLogProbArcSelector< Arc > > Class Template Reference

#include <randgen.h>

Public Types

using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using Accumulator = CacheLogAccumulator< Arc >
 
using Selector = FastLogProbArcSelector< Arc >
 

Public Member Functions

 ArcSampler (const Fst< Arc > &fst, const Selector &selector, int32 max_length=std::numeric_limits< int32 >::max())
 
 ArcSampler (const ArcSampler< Arc, Selector > &sampler, const Fst< Arc > *fst=nullptr)
 
bool Sample (const RandState< Arc > &rstate)
 
bool Done () const
 
void Next ()
 
std::pair< size_t, size_t > Value () const
 
void Reset ()
 
bool Error () const
 

Detailed Description

template<class Arc>
class fst::ArcSampler< Arc, FastLogProbArcSelector< Arc > >

Definition at line 277 of file randgen.h.

Member Typedef Documentation

template<class Arc >
using fst::ArcSampler< Arc, FastLogProbArcSelector< Arc > >::Accumulator = CacheLogAccumulator<Arc>

Definition at line 282 of file randgen.h.

template<class Arc >
using fst::ArcSampler< Arc, FastLogProbArcSelector< Arc > >::Selector = FastLogProbArcSelector<Arc>

Definition at line 283 of file randgen.h.

template<class Arc >
using fst::ArcSampler< Arc, FastLogProbArcSelector< Arc > >::StateId = typename Arc::StateId

Definition at line 279 of file randgen.h.

template<class Arc >
using fst::ArcSampler< Arc, FastLogProbArcSelector< Arc > >::Weight = typename Arc::Weight

Definition at line 280 of file randgen.h.

Constructor & Destructor Documentation

template<class Arc >
fst::ArcSampler< Arc, FastLogProbArcSelector< Arc > >::ArcSampler ( const Fst< Arc > &  fst,
const Selector selector,
int32  max_length = std::numeric_limits<int32>::max() 
)
inline

Definition at line 285 of file randgen.h.

template<class Arc >
fst::ArcSampler< Arc, FastLogProbArcSelector< Arc > >::ArcSampler ( const ArcSampler< Arc, Selector > &  sampler,
const Fst< Arc > *  fst = nullptr 
)
inline

Definition at line 295 of file randgen.h.

Member Function Documentation

template<class Arc >
bool fst::ArcSampler< Arc, FastLogProbArcSelector< Arc > >::Done ( ) const
inline

Definition at line 328 of file randgen.h.

template<class Arc >
bool fst::ArcSampler< Arc, FastLogProbArcSelector< Arc > >::Error ( ) const
inline

Definition at line 336 of file randgen.h.

template<class Arc >
void fst::ArcSampler< Arc, FastLogProbArcSelector< Arc > >::Next ( )
inline

Definition at line 330 of file randgen.h.

template<class Arc >
void fst::ArcSampler< Arc, FastLogProbArcSelector< Arc > >::Reset ( )
inline

Definition at line 334 of file randgen.h.

template<class Arc >
bool fst::ArcSampler< Arc, FastLogProbArcSelector< Arc > >::Sample ( const RandState< Arc > &  rstate)
inline

Definition at line 308 of file randgen.h.

template<class Arc >
std::pair<size_t, size_t> fst::ArcSampler< Arc, FastLogProbArcSelector< Arc > >::Value ( ) const
inline

Definition at line 332 of file randgen.h.


The documentation for this class was generated from the following file: