src/CombingExperimentSimulation.java
/**
     * Prints a histograms of total replication times (length of S phase)
     */
Prints a histograms of total replication times (length of S phase)
Prints a histograms of total replication times ( length of S phase )
public static void printElapsedTimeHistogram() {
        double HISTOGRAM_BIN_SIZE = 1.0;
        List<Double> timeList = population.getElapsedTimeList();
        Map<Integer, Long> timeMap = timeList.stream().collect(groupingBy(t-> (int)(t / HISTOGRAM_BIN_SIZE), counting()));
        System.out.println("DISTRIBUTION OF ELAPSED TIME");
        System.out.println("midpoint\tnumber"); 
        for (int key : timeMap.keySet()) {
            System.out.println((key + .5) * HISTOGRAM_BIN_SIZE + "\t" + timeMap.get(key));
        }
    }
public static void printElapsedTimeHistogram ( ) { double HISTOGRAM_BIN_SIZE = 1.0 ; List < Double > timeList = population . getElapsedTimeList ( ) ; Map < Integer , Long > timeMap = timeList . stream ( ) . collect ( groupingBy ( t -> ( int ) ( t / HISTOGRAM_BIN_SIZE ) , counting ( ) ) ) ; System . out . println ( "DISTRIBUTION OF ELAPSED TIME" ) ; System . out . println ( "midpoint\tnumber" ) ; for ( int key : timeMap . keySet ( ) ) { System . out . println ( ( key + .5 ) * HISTOGRAM_BIN_SIZE + "\t" + timeMap . get ( key ) ) ; } }
Prints a histograms of total replication times (length of S phase)
Prints a histograms of total replication times ( length of S phase )