Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - Cluster Java Code
Search - Cluster Java Code - List
# How To Run The Code ? After downloading it to local, 1. cd to the folder of src/boliu/dbscansd/ 2. compile all the .java files using: javac *.java 3. cd to the folder of src/ 4. execute the program using the following either command: java boliu.dbscansd.Main inputfile outputfile lineNum eps minPts maxSpd maxDir isStop * @param inputfile the input file path * @param outputfile the output file path * @param lineNum the designated number of trajectory points for clustering (if the size of the input file is less than lineNum, it will extract all the points) * @param eps 1st parameter of DBSCANSD, the radius * @param minPts 2nd parameter of DBSCANSD, the minimum number of points * @param maxSpd 3rd parameter of DBSCANSD, the maximum SOG difference * @param maxDir 4th parameter of DBSCANSD, the maximum COG difference * @param isStop boolean value (0/1), if you would like to cluster stopping points (1) or moving points (0) --e.g. java boliu.dbscansd.Main toy_data.csv output 70000 0.03 50 2 2.5 0 In this way, the program will do the job on toy_data.csv file. It will extract the first 70,000 moving points from the data and then run DBSCANSD on the dataset. The final output will be two files: output_gv.csv (gravity vectors) output_movingclusters.csv (original clustering results with more rows). 5. waiting for the result :) The running time will vary with different sizes of the input data and other input parameters. 6. Star it if it helps \*-\*
Date : 2021-04-20 Size : 11.44mb User : 648577896
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.