FST  openfst-1.8.3
OpenFst Library
Classes | Namespaces | Functions
randgen.h File Reference
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <functional>
#include <limits>
#include <map>
#include <memory>
#include <numeric>
#include <random>
#include <utility>
#include <vector>
#include <fst/log.h>
#include <fst/accumulator.h>
#include <fst/arc.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/impl-to-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
 

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, uint64_t seed=std::random_device()())