1 Star 0 Fork 0

网络智能感知/MSLCFinder top-k measurement

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
params.h 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
戴显龙 提交于 2023-03-12 02:23 . update
#pragma once
#define INPUT_PARAMS // ????????????????????????params.h?е???????????????????
#ifndef INPUT_PARAMS
//#define DATASET_PATH "D:\\???\\???\\20221101 TopK\\?????\\chn1"
//#define DATASET_PATH "D:\\???\\???\\20221101 TopK\\?????\\CAIDA2018\\My130000.dat"
//#define DATASET_PATH "D:\\???\\???\\20221101 TopK\\?????\\campus\\campus.dat"
#define TOP_K 100
#define PACKET_NUM 10000000
#define FLOW_NUM PACKET_NUM
#define COUNTER_NUM 131072 - TOP_K * 13 * 8 * 2 // 2 ^ 17
#define DEPTH 3
#define WITCH (COUNTER_NUM / DEPTH)
#define L 88
#define SAMPLING_PROBABILITY_1 (L - ((COUNTER_THRESHOLDS_1) -1))
#define SAMPLING_PROBABILITY_2 (SAMPLING_PROBABILITY_1 + 64)
#define SAMPLING_PROBABILITY_3 (SAMPLING_PROBABILITY_2 + 128)
#endif
//#define L 88
//#define DATASET_PATH "M:\\2022实验\\Data\\CAIDA2018.dat"
//#define CERNET30 "M:\\2022实验\\Data\\CERNET30"
//#define CERNET60 "M:\\2022实验\\Data\\CERNET60"
#define COUNTER_THRESHOLDS_1 63 // 2 ^ 6 - 1
#define COUNTER_THRESHOLDS_2 127 // 2 ^ 7 - 1
#define COUNTER_THRESHOLDS_3 255 // 2 ^ 8 - 1
//#define SAMPLING_PROBABILITY_1 (L - ((COUNTER_THRESHOLDS_1) -1))
//#define SAMPLING_PROBABILITY_2 (SAMPLING_PROBABILITY_1 + 64)
//#define SAMPLING_PROBABILITY_3 (SAMPLING_PROBABILITY_2 + 128)
#define byte unsigned char
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/network-intelligent-perception/mslcfinder-top-k-measurement.git
git@gitee.com:network-intelligent-perception/mslcfinder-top-k-measurement.git
network-intelligent-perception
mslcfinder-top-k-measurement
MSLCFinder top-k measurement
master

搜索帮助