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 time stamp:

Functions

template<class tsType = size_t>
vector< tsType > INTELLI::MicroDataSet::genSmoothTimeStamp (size_t len, size_t step, size_t interval)
 The function to generate a vector of timestamp which grows smoothly. More...
 
template<class tsType = size_t>
vector< tsType > INTELLI::MicroDataSet::genZipfTimeStamp (size_t len, tsType maxTime, double fac)
 The function to generate a vector of timestamp which has zipf distribution. More...
 

Detailed Description

This group is specialized for time stamps, as they should follow an incremental order

Function Documentation

◆ genSmoothTimeStamp()

template<class tsType = size_t>
vector<tsType> INTELLI::MicroDataSet::genSmoothTimeStamp ( size_t  len,
size_t  step,
size_t  interval 
)
inline

The function to generate a vector of timestamp which grows smoothly.

Template Parameters
tsTypeThe data type of time stamp, default is size_t
Parameters
lenThe length of output vector
stepWithin the step, timestamp will remain the same
intervalThe incremental value between two steps
Returns
The vector of time stamp

◆ genZipfTimeStamp()

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

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

Parameters
tsTypeThe data type of time stamp, default is size_t
lenThe length of output vector
maxTimeThe maximum value of time stamp
facThe zipf factor, in [0,1]
Returns
the output vector
See also
genZipfInt