src/ReplicatingMoleculePopulation.java
/**
     * Prints the averages for state variables for population of molecules at each time point sampled during replication
     * checked against more detailed display by PrintProperties
     */
Prints the averages for state variables for population of molecules at each time point sampled during replication
checked against more detailed display by PrintProperties
Prints the averages for state variables for population of molecules at each time point sampled during replication checked against more detailed display by PrintProperties
void printAverageStateVariables() {
        List<Double> averageTimeList = getAverageStateVariableList(ReplicatingMolecule2.StateRecord2::getTime);
        List<Double> averageInitiationsList = getAverageStateVariableList(ReplicatingMolecule2.StateRecord2::getNumberInitiations);
        List<Double> averageForksList = getAverageStateVariableList(ReplicatingMolecule2.StateRecord2::getNumberForks);
        List<Double> averagePotentialsList = getAverageStateVariableList(ReplicatingMolecule2.StateRecord2::getNumberPotentials);
        List<Double> averageTerminationsList = getAverageStateVariableList(ReplicatingMolecule2.StateRecord2::getNumberTerminations);
        List<Double> averagePassivesList = getAverageStateVariableList(ReplicatingMolecule2.StateRecord2::getNumberPassives);
        List<Double> averageNucsList = getAverageStateVariableList(ReplicatingMolecule2.StateRecord2::getNucleotidesReplicated);
        List<Double> averageClosuresList = getAverageStateVariableList(ReplicatingMolecule2.StateRecord2::getNumberClosures);
        List<Double> averageFxReplicatedList = averageNucsList.stream().map(e-> e / ParameterSet.SEQUENCE_LENGTH).collect(Collectors.toList());
        System.out.println("Time" + "\t" + "Initiations" + "\t" + "Forks" + "\t" + "Potentials" + "\t" + "Passives" + "\t" + "FxReplicated"
                + "\t" + "Terminations" + "\t" + "Closures");
        for (int i = 0; i < averageTimeList.size(); i++) {
            System.out.println(averageTimeList.get(i) + "\t" + averageInitiationsList.get(i) + "\t" + averageForksList.get(i) + "\t" +
                    averagePotentialsList.get(i) + "\t" + averagePassivesList.get(i) + "\t" + averageFxReplicatedList.get(i) + "\t" +
                    averageTerminationsList.get(i) + "\t" + averageClosuresList.get(i));
        }
    }
void printAverageStateVariables ( ) { List < Double > averageTimeList = getAverageStateVariableList ( ReplicatingMolecule2 . StateRecord2 :: getTime ) ; List < Double > averageInitiationsList = getAverageStateVariableList ( ReplicatingMolecule2 . StateRecord2 :: getNumberInitiations ) ; List < Double > averageForksList = getAverageStateVariableList ( ReplicatingMolecule2 . StateRecord2 :: getNumberForks ) ; List < Double > averagePotentialsList = getAverageStateVariableList ( ReplicatingMolecule2 . StateRecord2 :: getNumberPotentials ) ; List < Double > averageTerminationsList = getAverageStateVariableList ( ReplicatingMolecule2 . StateRecord2 :: getNumberTerminations ) ; List < Double > averagePassivesList = getAverageStateVariableList ( ReplicatingMolecule2 . StateRecord2 :: getNumberPassives ) ; List < Double > averageNucsList = getAverageStateVariableList ( ReplicatingMolecule2 . StateRecord2 :: getNucleotidesReplicated ) ; List < Double > averageClosuresList = getAverageStateVariableList ( ReplicatingMolecule2 . StateRecord2 :: getNumberClosures ) ; List < Double > averageFxReplicatedList = averageNucsList . stream ( ) . map ( e -> e / ParameterSet . SEQUENCE_LENGTH ) . collect ( Collectors . toList ( ) ) ; System . out . println ( "Time" + "\t" + "Initiations" + "\t" + "Forks" + "\t" + "Potentials" + "\t" + "Passives" + "\t" + "FxReplicated" + "\t" + "Terminations" + "\t" + "Closures" ) ; for ( int i = 0 ; i < averageTimeList . size ( ) ; i ++ ) { System . out . println ( averageTimeList . get ( i ) + "\t" + averageInitiationsList . get ( i ) + "\t" + averageForksList . get ( i ) + "\t" + averagePotentialsList . get ( i ) + "\t" + averagePassivesList . get ( i ) + "\t" + averageFxReplicatedList . get ( i ) + "\t" + averageTerminationsList . get ( i ) + "\t" + averageClosuresList . get ( i ) ) ; } }
Prints the averages for state variables for population of molecules at each time point sampled during replication
 checked against more detailed display by PrintProperties
Prints the averages for state variables for population of molecules at each time point sampled during replication checked against more detailed display by PrintProperties