FST  openfst-1.7.0
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 268 of file randgen.h.

Member Typedef Documentation

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

Definition at line 273 of file randgen.h.

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

Definition at line 274 of file randgen.h.

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

Definition at line 270 of file randgen.h.

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

Definition at line 271 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 276 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 286 of file randgen.h.

Member Function Documentation

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

Definition at line 319 of file randgen.h.

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

Definition at line 327 of file randgen.h.

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

Definition at line 321 of file randgen.h.

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

Definition at line 325 of file randgen.h.

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

Definition at line 299 of file randgen.h.

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

Definition at line 323 of file randgen.h.


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