From 8a3a03757287aa21c98534a00b2aa21b298a1541 Mon Sep 17 00:00:00 2001 From: Abd Errahmane Kiouche <abd-errahmane.kiouche@etu.univ-lyon1.fr> Date: Thu, 25 Jun 2020 17:31:43 +0200 Subject: [PATCH] Upload New File --- src/Anomaly_Detection_Phase/cluster.h | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/Anomaly_Detection_Phase/cluster.h diff --git a/src/Anomaly_Detection_Phase/cluster.h b/src/Anomaly_Detection_Phase/cluster.h new file mode 100644 index 0000000..6fce1b1 --- /dev/null +++ b/src/Anomaly_Detection_Phase/cluster.h @@ -0,0 +1,28 @@ +// +// Created by Abderrahmane on 9/10/2018. +// + +#ifndef GRAPH_CLUSTER_H +#define GRAPH_CLUSTER_H + + +#include <cstdint> +#include <vector> +#include <unordered_map> +#include "graph.h" + +namespace std { + vector<vector<double>> construct_centroid_vectors(unordered_map<uint32_t, vector<double>> &train_graph_vectors, + const vector<vector<uint32_t>> &clusters); + + void detect_anomalies(uint32_t &gid,const graph_vector &gv, + vector<int>& cluster_map, + vector<double>& anomaly_scores, + const vector<vector<double>> ¢roid_vectors, + vector<uint32_t>& cluster_sizes, + const double &anomaly_threshold, + const vector<double>& cluster_thresholds); + +} + +#endif //GRAPH_CLUSTER_H -- GitLab