AllianceDB  0.0.1
AllianceDB is an open-source suite, including benchmarks and libs for evaluating and improving stream operation algorithms on modern hardwares.
Collaboration diagram for generic:

Functions

template<class dType = uint32_t>
vector< dType > INTELLI::MicroDataSet::genIncrementalAlphabet (size_t len)
 To generate incremental alphabet, starting from 0 and end at len. More...
 
template<class tsType = size_t>
vector< tsType > INTELLI::MicroDataSet::genZipfInt (size_t len, tsType maxV, double fac)
 The function to generate a vector of integers which has zipf distribution. More...
 
template<class tsType = uint32_t, class genType = std::mt19937>
vector< tsType > INTELLI::MicroDataSet::genRandInt (size_t len, tsType maxV, tsType minV=0)
 generate the vector of random integer More...
 
template<class dType = double>
vector< dType > INTELLI::MicroDataSet::genZipfLut (size_t len, dType fac)
 To generate the zipf Lut. More...
 

Detailed Description

The functions for general generation of Micro

Function Documentation

◆ genIncrementalAlphabet()

template<class dType = uint32_t>
vector<dType> INTELLI::MicroDataSet::genIncrementalAlphabet ( size_t  len)
inline

To generate incremental alphabet, starting from 0 and end at len.

Template Parameters
dTypeThe data type in the alphabet, default uint32_t
Parameters
lenThe length of alphabet
Returns
The output vector alphabet

◆ genRandInt()

template<class tsType = uint32_t, class genType = std::mt19937>
vector<tsType> INTELLI::MicroDataSet::genRandInt ( size_t  len,
tsType  maxV,
tsType  minV = 0 
)
inline

generate the vector of random integer

Template Parameters
tsTypeThe data type, default uint32_t
genTypeThe generator type, default mt19937 (32 bit rand)
Parameters
lenThe length of output vector
maxVThe maximum value of output
minVThe minimum value of output
Returns
The output vector
Note
Both signed and unsigned int are support, just make sure you have right tsType
Other options for genType:
  • mt19937_64: 64 bit rand
  • ranlux24: 24 bit
  • ranlux48: 48 bit

◆ genZipfInt()

template<class tsType = size_t>
vector<tsType> INTELLI::MicroDataSet::genZipfInt ( size_t  len,
tsType  maxV,
double  fac 
)
inline

The function to generate a vector of integers which has zipf distribution.

Parameters
tsTypeThe data type of int, default is size_t
lenThe length of output vector
maxVThe maximum value of integer
facThe zipf factor, in [0,1]
Returns
the output vector

◆ genZipfLut()

template<class dType = double>
vector<dType> INTELLI::MicroDataSet::genZipfLut ( size_t  len,
dType  fac 
)
inline

To generate the zipf Lut.

Template Parameters
dTypeThe data type in the alphabet, default double
Parameters
lenThe length of alphabet
facThe zipf factor, in [0,1]
Returns
The output vector lut