- System.out.println( "Minimum duplications : " + ( int ) stats.getMin() + " ("
- + df.format( 100.0 * stats.getMin() / rio.getIntNodesOfAnalyzedGeneTrees() ) + "%)" );
- System.out.println( "Maximum duplications : " + ( int ) stats.getMax() + " ("
- + df.format( 100.0 * stats.getMax() / rio.getIntNodesOfAnalyzedGeneTrees() ) + "%)" );
- System.out.println( "Gene tree internal nodes : " + rio.getIntNodesOfAnalyzedGeneTrees() );
- System.out.println( "Gene tree external nodes : " + rio.getExtNodesOfAnalyzedGeneTrees() );
+ final double min_count_percentage = ( 100.0 * min_count ) / stats.getN();
+ final double max_count_percentage = ( 100.0 * max_count ) / stats.getN();
+ final double median_count_percentage = ( 100.0 * median_count ) / stats.getN();
+ System.out.println( "Gene tree internal nodes :\t" + rio.getIntNodesOfAnalyzedGeneTrees() );
+ System.out.println( "Gene tree external nodes :\t" + rio.getExtNodesOfAnalyzedGeneTrees() );
+ System.out.println( "Mean number of duplications :\t" + df.format( stats.arithmeticMean() ) + "\t"
+ + df.format( ( 100.0 * stats.arithmeticMean() ) / rio.getIntNodesOfAnalyzedGeneTrees() )
+ + "%\t(sd: " + df.format( stats.sampleStandardDeviation() ) + ")" );
+ if ( stats.getN() > 3 ) {
+ System.out.println( "Median number of duplications :\t" + df.format( median ) + "\t"
+ + df.format( ( 100.0 * median ) / rio.getIntNodesOfAnalyzedGeneTrees() ) + "%" );
+ }
+ System.out.println( "Minimum duplications :\t" + min + "\t"
+ + df.format( ( 100.0 * min ) / rio.getIntNodesOfAnalyzedGeneTrees() ) + "%" );
+ System.out.println( "Maximum duplications :\t" + ( int ) max + "\t"
+ + df.format( ( 100.0 * max ) / rio.getIntNodesOfAnalyzedGeneTrees() ) + "%" );
+ System.out.println( "Gene trees with median duplications :\t" + median_count + "\t"
+ + df.format( median_count_percentage ) + "%" );
+ System.out.println( "Gene trees with minimum duplications:\t" + min_count + "\t"
+ + df.format( min_count_percentage ) + "%" );
+ System.out.println( "Gene trees with maximum duplications:\t" + max_count + "\t"
+ + df.format( max_count_percentage ) + "%" );