forked from b3dk7/StegExpose
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFuse.java
More file actions
40 lines (36 loc) · 843 Bytes
/
Fuse.java
File metadata and controls
40 lines (36 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import java.util.ArrayList;
/**
* Fuse
*
* Provides static methods used by RunStegExpose in order to combine detector results
*
* @author Benedikt Boehm
* @version 0.1
*/
public class Fuse {
/**
* Outputs the mean value of all members in a List
*
* @param input List of detector results to be used in fusion
* @return Mean result
*/
public static double se(ArrayList<Double> input){
double se;
double sum =0;
for(Double detector : input){
sum+=detector;
}
se = sum/input.size();
return se;
}
/**
* Provides quantitative steganalysis
*
* @param se steganalytic input (percentage value)
* @param fileLength size of the file being analysed
* @return Quantitative steganalytic output
*/
public static double seQ(double se, double fileLength){
return se*fileLength/3;
}
}