code in convertSampleDataIntoCoIntensityNetwork before runnning into ram problem 11-06-2014d1423

2014-11-06

code in convertSampleDataIntoCoIntensityNetwork before runnning into ram problem 11-06-2014d1423

public void convertSampleDataIntoCoIntensityNetwork(double[][] values)

PearsonsCorrelation pc = new PearsonsCorrelation();

//int[][] similarity_score_matrix = new int[values.length][values.length];
//fill up the similarity score with absolute value correlation coefficient values
/*
for(int i=0; i<values.length; i++)
{
for(int j=i+1; j<values.length; j++)
{
//convert the current integer arrays to doubles for the pearson correlation coefficient function
int[] i_first_row = values[i];
int[] i_second_row = values[j];
double[] d_first_row = new double[i_first_row.length];
double [] d_second_row = new double[i_second_row.length];
for(int array_conversion_count=0; array_conversion_count<i_first_row.length; array_conversion_count++)
{
d_first_row[array_conversion_count] = Integer.valueOf(i_first_row[array_conversion_count]).doubleValue();

for(int array_conversion_count=0; array_conversion_count<i_second_row.length; array_conversion_count++)

d_second_row[array_conversion_count] = Integer.valueOf(i_second_row[array_conversion_count]).doubleValue();

double calculated_similarity_score = Math.abs(pc.correlation(d_first_row, d_second_row));
int i_calculated_similarity_score = Double.valueOf(calculated_similarity_score).intValue();
similarity_score_matrixij = i_calculated_similarity_score;
similarity_score_matrixji = i_calculated_similarity_score;
}
}
*/
//System.out.println(Arrays.deepToString(similarity_score_matrix));
}