Examples of UncertainValue2


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

Examples of gov.nist.microanalysis.Utility.UncertainValue2

        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

Examples of gov.nist.microanalysis.Utility.UncertainValue2



    @Test
    public void testGetMeanTrajectoryTime() {
        UncertainValue2 trajTime = listener.getMeanTrajectoryTime();
        assertTrue(trajTime.doubleValue() > 0);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.