DP-HLS
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
Random Namespace Reference

Functions

template<int N>
string Sequence (char alphabet[N], int length)
 
template<typename T >
std::vector< T > SequenceComplex (int length)
 
template<int WID>
std::vector< std::array< int, 5 > > SequenceProfileAlignment (int len)
 A function that generates a random sequence in the format of the input of profile alignment. Each element of the output vector is an array of length 5. Each element in the array is the count of A, T, C, G, and _ in the column. The integers in the array should be non negative and sum up to WID. More...
 

Function Documentation

template<int N>
string Random::Sequence ( char  alphabet[N],
int  length 
)
template<typename T >
std::vector<T> Random::SequenceComplex ( int  length)
template<int WID>
std::vector<std::array<int, 5> > Random::SequenceProfileAlignment ( int  len)

A function that generates a random sequence in the format of the input of profile alignment. Each element of the output vector is an array of length 5. Each element in the array is the count of A, T, C, G, and _ in the column. The integers in the array should be non negative and sum up to WID.

Template Parameters
WIDNumber of sequences in the aligned sequences.
Returns
std::vector<std::array<int, N>>