Examples of intrs_intrv()


Examples of gov.fnal.eag.healpix.PixTools.intrs_intrv()

    PixTools pt = new PixTools();
    double[] d1 = { 1.0, 9.0 };
    double[] d2 = { 3.0, 16.0 };
    double[] di;
    //    System.out.println("Case "+d1[0]+" "+d1[1]+" | "+d2[0]+" "+d2[1]);
    di = pt.intrs_intrv(d1, d2);
    //    System.out.println("Result "+di[0]+" - "+di[1]);
    int n12 = di.length / 2;
    assertEquals("n12 = " + n12, 1, n12, 1e-6);
    assertEquals("di[0] = " + di[0], 3.0, di[0], 1e-6);
    assertEquals("di[1] = " + di[1], 9.0, di[1], 1e-6);
View Full Code Here

Examples of gov.fnal.eag.healpix.PixTools.intrs_intrv()

    assertEquals("di[0] = " + di[0], 3.0, di[0], 1e-6);
    assertEquals("di[1] = " + di[1], 9.0, di[1], 1e-6);
    d1 = new double[] { 0.537, 4.356 };
    d2 = new double[] { 3.356, 0.8 };
    //    System.out.println("Case "+d1[0]+" "+d1[1]+" | "+d2[0]+" "+d2[1]);
    di = pt.intrs_intrv(d1, d2);
    n12 = di.length / 2;
    assertEquals("n12 = " + n12, 2, n12, 1e-6);
    assertEquals("di[0] = " + di[0], 0.537, di[0], 1e-6);
    assertEquals("di[1] = " + di[1], 0.8, di[1], 1e-6);
    assertEquals("di[2] = " + di[2], 3.356, di[2], 1e-6);
View Full Code Here

Examples of gov.fnal.eag.healpix.PixTools.intrs_intrv()

    assertEquals("di[1] = " + di[3], 4.356, di[3], 1e-6);

    d1 = new double[] { 2.356194490092345, 2.356194490292345 };
    d2 = new double[] { 1.251567, 4.17 };
    //    System.out.println("Case "+d1[0]+" "+d1[1]+" | "+d2[0]+" "+d2[1]);
    di = pt.intrs_intrv(d1, d2);
    n12 = di.length / 2;
    assertEquals("n12 = " + n12, 1, n12, 1e-6);
    assertEquals("di[0] = " + di[0], 2.35619449009, di[0], 1e-6);
    assertEquals("di[1] = " + di[1], 2.35619449029, di[1], 1e-6);
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.