/** Stores a big array to a file given by a pathname. * * @param array a big array whose elements will be written to {@code filename}. * @param filename a filename. */ public static void storeDoubles(final double array[][], final CharSequence filename) throws IOException { storeDoubles(array, new File(filename.toString())); } /** Stores the element returned by an iterator to a given data output.
/** Stores an array fragment to a file given by a pathname. * * @param array an array whose elements will be written to {@code filename}. * @param offset the index of the first element of {@code array} to be written. * @param length the number of elements of {@code array} to be written. * @param filename a filename. */ public static void storeDoubles(final double array[], final int offset, final int length, final CharSequence filename) throws IOException { storeDoubles(array, offset, length, new File(filename.toString())); } /** Stores an array to a file given by a {@link File} object.
/** Stores the element returned by an iterator to a file given by a pathname. * * @param i an iterator whose output will be written to {@code filename}. * @param filename a filename. */ public static void storeDoubles(final DoubleIterator i, final CharSequence filename) throws IOException { storeDoubles(i, new File(filename.toString())); } /** A wrapper that exhibits the content of a data input stream as a type-specific iterator. */
/** Stores an array to a file given by a pathname. * * @param array an array whose elements will be written to {@code filename}. * @param filename a filename. */ public static void storeDoubles(final double array[], final CharSequence filename) throws IOException { storeDoubles(array, new File(filename.toString())); } /** Loads elements from a given data input, storing them in a given big-array fragment.
/** Stores a big-array fragment to a file given by a pathname. * * @param array a big array whose elements will be written to {@code filename}. * @param offset the index of the first element of {@code array} to be written. * @param length the number of elements of {@code array} to be written. * @param filename a filename. */ public static void storeDoubles(final double array[][], final long offset, final long length, final CharSequence filename) throws IOException { storeDoubles(array, offset, length, new File(filename.toString())); } /** Stores an array to a file given by a {@link File} object.
centralities.compute(); BinIO.storeDoubles(centralities.closeness, jsapResult.getString("closenessFilename")); BinIO.storeDoubles(centralities.lin, jsapResult.getString("linFilename")); BinIO.storeDoubles(centralities.harmonic, jsapResult.getString("harmonicFilename")); BinIO.storeDoubles(centralities.exponential, jsapResult.getString("exponentialFilename")); BinIO.storeLongs(centralities.reachable, jsapResult.getString("reachableFilename"));
betweennessCentralityMultipleVisits.compute(); BinIO.storeDoubles(betweennessCentralityMultipleVisits.betweenness, rankFilename);