Hi,
I'm having a data in 3 dimensional array..as such i'm facing problems like java.lang.OutOfMemoryError:Java Heap space I thought of converting that 3 dimensional array to its equivalent 2 dimensional array..
The code that I was having is given below
Instead of placing x[i][w] content into trackclusters[v][clusterpointscount[v]][w] i would like x[i][w] data to be placed in some array of this type: trackclusters[][]
o make it simple ... i want the data that is been stored in 3-dimensional array ie; trackclusters[][][] into 2-dimensional array of kind trackclusters[][]
eg: Points in cluster1:
0.33 0.0 0.0 0.0 0.5 0.0
0.5 0.0 0.0 0.0 0.67 0.0
0.67 0.0 0.0 0.0 1.0 0.0
Points in cluster2:
0.08 0.13 0.0 0.0 0.0 0.37
0.08 0.13 0.0 0.0 0.17 0.12
if trackclusters[1][1][1] represents the data that is present in Cluster:1 row:1 column:1
and trackcluster[2][2][1] represents the data that is present in cluster:2 row:2 column:1
instead of storing the data of Points in cluster in 3dimensional array.. i want to store them in 2 dimensional array
Somebody please help me out in this regard.
Thnx in advance