### Question:
ProfileToNetwork { public static Matrix continuousProfile(Matrix profile, int k) { return continuousProfile(profile, k, 25.0); }  static Matrix continuousProfile(Matrix profile, int k); static Matrix continuousProfile(Matrix profile, int k, double maxMissingPercentage); static Object [] continuousProfileWithNames(Matrix profile, int k, String [] names, Map<String, String> identifierMap, double maxMissingPercentage); static Matrix ThresholdOnly(Matrix profile, double low, double hi); static double sillyColumnMult(Matrix terms, int i, int j); static void setHiLow(Matrix network, Matrix correlations, int i, double hi, double low); static Matrix binaryProfile(Matrix profile, int k); static Object[] averageRepeatedIdentifiers(Matrix profile, String [] names, Map<String, String> identifierMap); static void findNaNs(Matrix m); static void findNaNs(Vector v); static void convertProfileToRanks(Matrix profile);  }### Answer:
@Test public void testContinuousProfile() { Matrix profile = new DenseMatrix(new double [][] {{10,2,3,4,5},{6,17,8,9,10},{11,12,23,14,15},{16,17,18,29,20},{21,22,23,24,35}}); Matrix network = ProfileToNetwork.continuousProfile(profile, 3); assertNotNull(network); assertEquals(5, network.numRows()); assertEquals(5, network.numColumns()); Matrix expectedNetwork = new DenseMatrix(new double [][] { {0.0000, 0.0000, 0.6733, 0.7975, 0.9054}, {0.0000, 0.0000, 0.6534, 0.7314, 0.8020}, {0.6733, 0.6534, 0.0000, 0.7433, 0.7891}, {0.7975, 0.7314, 0.7433, 0.0000, 0.7960}, {0.9054, 0.8020, 0.7891, 0.7960, 0.0000}, }); Utils.elementWiseCompare(expectedNetwork, network, 0.0001d); }