-
Notifications
You must be signed in to change notification settings - Fork 0
/
Run.java
31 lines (27 loc) · 879 Bytes
/
Run.java
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
import java.io.File;
import java.util.ArrayList;
/**
* Created by Administrator on 2017/2/27 0027.
*/
public class Run {
public static void main(String args[]){
Analyze ana=new Analyze();
int[] column=ana.findMax();
ArrayList<Double> precisions=new ArrayList<>();
File root=new File("TrajData");
File[] files=root.listFiles();
for(File file:files){
ArrayList<Location> traj=LoadTraj.getCSVData(file);
Markov m=new Markov();
Compare c=new Compare();
int []window=new int[]{1,2,3,4};
for(int win:window){
double d=c.getPrecision(traj,m.predict_order3(traj,win),3);
precisions.add(d);
}
}
OutputPrecision o=new OutputPrecision();
o.makeCSV(precisions,"auto_order3.csv");
int a=2;
}
}