This group is specialized for time stamps, as they should follow an incremental order
◆ 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
-
tsType | The data type of time stamp, default is size_t |
- Parameters
-
len | The length of output vector |
step | Within the step, timestamp will remain the same |
interval | The 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
-
tsType | The data type of time stamp, default is size_t |
len | The length of output vector |
maxTime | The maximum value of time stamp |
fac | The zipf factor, in [0,1] |
- Returns
- the output vector
- See also
- genZipfInt