fix distributed KMeans bugs and add javasingle version
[IRC.git] / Robust / src / Benchmarks / Prefetch / KMeans / javasingle / GlobalArgs.java
1 /* ==============================================================================
2  *
3  * GlobalArgs.java
4  * -- Class that holds all the global parameters used by each thread
5  *    during parallel execution
6  *
7  * =============================================================================
8  * Author:
9  *
10  * Alokika Dash
11  * University of California, Irvine
12  * email adash@uci.edu
13  *
14  * =============================================================================
15  */
16
17 public class GlobalArgs {
18
19   public GlobalArgs() {
20
21   }
22
23   /**
24    * Number of threads
25    **/
26   public int nthreads;
27
28   /**
29    * List of attributes
30    **/
31   public float[][] feature;
32
33   /**
34    * Number of attributes per Object
35    **/
36   public int nfeatures;
37
38   /**
39    * Number of Objects
40    **/
41   public int npoints;
42
43
44   /**
45    * Iteration id between min_nclusters to max_nclusters 
46    **/
47   public int nclusters;
48
49
50   /**
51    * Array that holds change index of cluster center per thread 
52    **/
53   public int[] membership;
54
55   /**
56    *
57    **/
58   public float[][] clusters;
59
60
61   /**
62    * Number of points in each cluster [nclusters]
63    **/
64   public intwrapper[] new_centers_len;
65
66   /**
67    * New centers of the clusters [nclusters][nfeatures]
68    **/
69   public float[][] new_centers;
70
71   /**
72     *
73   **/
74   public int global_i;
75
76   public float global_delta;
77
78 }