need to apply kmeans 2
This commit is contained in:
parent
ab3ec3a565
commit
f438835200
|
@ -4,5 +4,6 @@
|
|||
|
||||
/* function declared */
|
||||
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 */
|
|
@ -5,6 +5,7 @@
|
|||
#include <gtk/gtk.h>
|
||||
#include <math.h>
|
||||
#include "parser.h"
|
||||
#include "Attack_detect.h"
|
||||
|
||||
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 */
|
|
@ -296,3 +296,8 @@ int DTWvolDistance(struct data_frame *df)
|
|||
return temp->result;
|
||||
}
|
||||
}
|
||||
|
||||
int DTWfreqvolDistance(struct data_frame *df)
|
||||
{
|
||||
return DTWfreqDistance(df) && DTWfreqvolDistance(df);
|
||||
}
|
Loading…
Reference in New Issue