Package gov.nist.microanalysis.Utility

Examples of gov.nist.microanalysis.Utility.UncertainValue2


     * @return mean trajectory time in seconds
     */
    public UncertainValue2 getMeanTrajectoryTime() {
        double mean = sum / count;
        double std = Math.sqrt(sumSquare / count - Math.pow(mean, 2.0));
        return new UncertainValue2(mean / 1000.0, std / 1000.0);
    }
View Full Code Here


        String eol = System.getProperty("line.separator");

        writer.append("Simulation time: " + getSimulationTime() + " s"
                + eol);

        UncertainValue2 trajTime = getMeanTrajectoryTime();
        writer.append("Average trajectory time: " + trajTime.doubleValue()
                + " +- " + trajTime.uncertainty() + " ms");

        writer.close();
    }
View Full Code Here



    @Test
    public void testGetMeanTrajectoryTime() {
        UncertainValue2 trajTime = listener.getMeanTrajectoryTime();
        assertTrue(trajTime.doubleValue() > 0);
    }
View Full Code Here

TOP

Related Classes of gov.nist.microanalysis.Utility.UncertainValue2

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.