def newAnnotation(threshold, trace): root = admd.annotation_t() algo = admd.algorithm_t() algo.set_name("Simple MapReduce Detector (packet based)") algo.set_version(__version__) algo.set_parameter("tau={0}".format(threshold)) root.set_algorithm(algo) analy = admd.analysis_t() analy.set_datetime(datetime.datetime.today()) analy.set_description("MAWILab") analy.set_analyst("Romain Fontugne") analy.set_organization("National Institute of Informatics") root.set_analysis(analy) data = admd.dataset_t() data.set_description("MAWI") data.set_name(trace) root.set_dataset(data) return root
def newAnnotation(threshold, binSize,trace): root = admd.annotation_t() algo = admd.algorithm_t() algo.set_name("Astute (MapReduce)") algo.set_version(__version__) algo.set_parameter("K(p)={0}, binSize={1}".format(threshold,binSize)) root.set_algorithm(algo) analy = admd.analysis_t() analy.set_datetime(datetime.datetime.today()) analy.set_description("MAWILab") analy.set_analyst("Romain Fontugne") analy.set_organization("National Institute of Informatics") root.set_analysis(analy) data = admd.dataset_t() data.set_description("MAWI") data.set_name(trace) root.set_dataset(data) return root