FST  openfst-1.7.2
OpenFst Library
Classes | Namespaces | Typedefs | Functions
randgen.h File Reference
#include <math.h>
#include <stddef.h>
#include <limits>
#include <map>
#include <memory>
#include <random>
#include <utility>
#include <vector>
#include <fst/log.h>
#include <fst/accumulator.h>
#include <fst/cache.h>
#include <fst/dfs-visit.h>
#include <fst/float-weight.h>
#include <fst/fst-decl.h>
#include <fst/fst.h>
#include <fst/mutable-fst.h>
#include <fst/properties.h>
#include <fst/util.h>
#include <fst/weight.h>
Include dependency graph for randgen.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fst::UniformArcSelector< Arc >
 
class  fst::LogProbArcSelector< Arc >
 
class  fst::FastLogProbArcSelector< Arc >
 
struct  fst::RandState< Arc >
 
class  fst::ArcSampler< Arc, Selector >
 
class  fst::ArcSampler< Arc, FastLogProbArcSelector< Arc > >
 
struct  fst::RandGenFstOptions< Sampler >
 
class  fst::internal::RandGenFstImpl< FromArc, ToArc, Sampler >
 
class  fst::RandGenFst< FromArc, ToArc, Sampler >
 
class  fst::StateIterator< RandGenFst< FromArc, ToArc, Sampler > >
 
class  fst::ArcIterator< RandGenFst< FromArc, ToArc, Sampler > >
 
struct  fst::RandGenOptions< Selector >
 
class  fst::internal::RandGenVisitor< FromArc, ToArc >
 

Namespaces

 fst
 
 fst::internal
 

Typedefs

using fst::StdArcSelector = LogProbArcSelector< StdArc >
 

Functions

template<class Result , class RNG >
void fst::OneMultinomialSample (const std::vector< double > &probs, size_t num_to_sample, Result *result, RNG *rng)
 
template<class FromArc , class ToArc , class Selector >
void fst::RandGen (const Fst< FromArc > &ifst, MutableFst< ToArc > *ofst, const RandGenOptions< Selector > &opts)
 
template<class FromArc , class ToArc >
void fst::RandGen (const Fst< FromArc > &ifst, MutableFst< ToArc > *ofst)