desc.append( "\n" );
desc.append( " Median: " + ForesterUtil.round( bs.median(), 6 ) );
desc.append( "\n" );
- desc.append( " Mean: " + ForesterUtil.round( bs.arithmeticMean(), 6 ) + " (±"
+ desc.append( " Mean: " + ForesterUtil.round( bs.arithmeticMean(), 6 ) + " (stdev: "
+ ForesterUtil.round( bs.sampleStandardDeviation(), 6 ) + ")" );
desc.append( "\n" );
desc.append( " Minimum: " + ForesterUtil.round( bs.getMin(), 6 ) );
desc.append( "\n" );
desc.append( " Median: " + ForesterUtil.round( ds.median(), 2 ) );
desc.append( "\n" );
- desc.append( " Mean: " + ForesterUtil.round( ds.arithmeticMean(), 2 ) + " (±"
+ desc.append( " Mean: " + ForesterUtil.round( ds.arithmeticMean(), 2 ) + " (stdev: "
+ ForesterUtil.round( ds.sampleStandardDeviation(), 2 ) + ")" );
desc.append( "\n" );
desc.append( " Minimum: " + ForesterUtil.roundToInt( ds.getMin() ) );
desc.append( " Median: " + ForesterUtil.round( cs.median(), 6 ) );
desc.append( "\n" );
desc.append( " Mean: " + ForesterUtil.round( cs.arithmeticMean(), 6 ) );
- desc.append( "\n" );
if ( cs.getN() > 2 ) {
- desc.append( " SD: " + ForesterUtil.round( cs.sampleStandardDeviation(), 6 ) );
- desc.append( "\n" );
+ desc.append( " (stdev: " + ForesterUtil.round( cs.sampleStandardDeviation(), 6 ) + ")" );
}
+ desc.append( "\n" );
desc.append( " Minimum: " + ForesterUtil.roundToInt( cs.getMin() ) );
desc.append( "\n" );
desc.append( " Maximum: " + ForesterUtil.roundToInt( cs.getMax() ) );
return true;
}
- final static boolean isMac() {
- try {
- final String s = ForesterUtil.OS_NAME.toLowerCase();
- return s.startsWith( "mac" );
- }
- catch ( final Exception e ) {
- ForesterUtil.printWarningMessage( Constants.PRG_NAME, "minor error: " + e );
- return false;
- }
- }
-
final static boolean isUsOrCanada() {
try {
if ( ( Locale.getDefault().equals( Locale.CANADA ) ) || ( Locale.getDefault().equals( Locale.US ) ) ) {
return false;
}
- final static boolean isWindows() {
- try {
- final String s = ForesterUtil.OS_NAME.toLowerCase();
- return s.indexOf( "win" ) > -1;
- }
- catch ( final Exception e ) {
- ForesterUtil.printWarningMessage( Constants.PRG_NAME, "minor error: " + e );
- return false;
- }
- }
-
final static void lookAtSomeTreePropertiesForAptxControlSettings( final Phylogeny t,
final ControlPanel atv_control,
final Configuration configuration ) {
if ( os.toLowerCase().startsWith( "win" ) ) {
Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + url );
}
- else if ( isMac() ) {
+ else if ( ForesterUtil.isMac() ) {
final Class<?> file_mgr = Class.forName( "com.apple.eio.FileManager" );
final Method open_url = file_mgr.getDeclaredMethod( "openURL", new Class[] { String.class } );
open_url.invoke( null, new Object[] { url } );