need to apply kmeans 2

This commit is contained in:
pavanvpatil 2022-10-28 22:12:22 +05:30
parent ab3ec3a565
commit f438835200
3 changed files with 15 additions and 1 deletions

View File

@ -4,5 +4,6 @@
/* function declared */ /* function declared */
gboolean attack_detect_freq(struct data_frame *df); gboolean attack_detect_freq(struct data_frame *df);
gboolean attack_detect_vol(struct data_frame *df) gboolean attack_detect_vol(struct data_frame *df);
gboolean attack_detect_freq_vol(struct data_frame *df);
/* pavan changes */ /* pavan changes */

View File

@ -5,6 +5,7 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <math.h> #include <math.h>
#include "parser.h" #include "parser.h"
#include "Attack_detect.h"
struct freqlist struct freqlist
{ {
@ -163,4 +164,11 @@ gboolean attack_detect_vol(struct data_frame *df)
} }
} }
gboolean attack_detect_freq_vol(struct data_frame *df)
{
return attack_detect_freq(df) && attack_detect_vol(df);
}
/* pavan changes */ /* pavan changes */

View File

@ -296,3 +296,8 @@ int DTWvolDistance(struct data_frame *df)
return temp->result; return temp->result;
} }
} }
int DTWfreqvolDistance(struct data_frame *df)
{
return DTWfreqDistance(df) && DTWfreqvolDistance(df);
}