vg
tools for working with variation graphs
Public Member Functions | Private Attributes | List of all members
vg::NGSSimulator::MarkovDistribution< From, To > Class Template Reference

Public Member Functions

 MarkovDistribution (uint64_t seed)
 
void record_transition (From from, To to)
 record a transition from the input data More...
 
void finalize ()
 indicate that there is no more data and prepare for sampling More...
 
To sample_transition (From from)
 sample according to the training data More...
 

Private Attributes

mt19937_64 prng
 
unordered_map< From, vg::uniform_int_distribution< size_t > > samplers
 
unordered_map< To, size_t > column_of
 
vector< To > value_at
 
unordered_map< From, vector< size_t > > cond_distrs
 

Constructor & Destructor Documentation

◆ MarkovDistribution()

template<class From , class To >
vg::NGSSimulator::MarkovDistribution< From, To >::MarkovDistribution ( uint64_t  seed)

A finite state Markov distribution that supports sampling

Member Function Documentation

◆ finalize()

template<class From , class To >
void vg::NGSSimulator::MarkovDistribution< From, To >::finalize ( )

indicate that there is no more data and prepare for sampling

◆ record_transition()

template<class From , class To >
void vg::NGSSimulator::MarkovDistribution< From, To >::record_transition ( From  from,
To  to 
)

record a transition from the input data

◆ sample_transition()

template<class From , class To >
To vg::NGSSimulator::MarkovDistribution< From, To >::sample_transition ( From  from)

sample according to the training data

Member Data Documentation

◆ column_of

template<class From , class To >
unordered_map<To, size_t> vg::NGSSimulator::MarkovDistribution< From, To >::column_of
private

◆ cond_distrs

template<class From , class To >
unordered_map<From, vector<size_t> > vg::NGSSimulator::MarkovDistribution< From, To >::cond_distrs
private

◆ prng

template<class From , class To >
mt19937_64 vg::NGSSimulator::MarkovDistribution< From, To >::prng
private

◆ samplers

template<class From , class To >
unordered_map<From, vg::uniform_int_distribution<size_t> > vg::NGSSimulator::MarkovDistribution< From, To >::samplers
private

◆ value_at

template<class From , class To >
vector<To> vg::NGSSimulator::MarkovDistribution< From, To >::value_at
private

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