FST  openfst-1.8.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_t max_length=std::numeric_limits< int32_t >::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 296 of file randgen.h.

Member Typedef Documentation

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

Definition at line 301 of file randgen.h.

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

Definition at line 302 of file randgen.h.

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

Definition at line 298 of file randgen.h.

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

Definition at line 299 of file randgen.h.

Constructor & Destructor Documentation

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

Definition at line 304 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 314 of file randgen.h.

Member Function Documentation

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

Definition at line 347 of file randgen.h.

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

Definition at line 355 of file randgen.h.

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

Definition at line 349 of file randgen.h.

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

Definition at line 353 of file randgen.h.

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

Definition at line 327 of file randgen.h.

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

Definition at line 351 of file randgen.h.


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