Package gov.nist.microanalysis.Utility

Examples of gov.nist.microanalysis.Utility.Histogram.maxValue()


        listener = new BSERadialDistributionListener(Math2.ORIGIN_3D,
                Math2.Z_AXIS, 100.0, 10, false);
        h = listener.getDistribution();
        assertEquals(10, h.binCount());
        assertEquals(0.0, h.minValue(0), 1e-4);
        assertEquals(10.0, h.maxValue(0), 1e-4);
        assertEquals(10.0, h.minValue(1), 1e-4);
        assertEquals(20.0, h.maxValue(1), 1e-4);

        listener =
                new BSERadialDistributionListener(Math2.ORIGIN_3D,
View Full Code Here


        h = listener.getDistribution();
        assertEquals(10, h.binCount());
        assertEquals(0.0, h.minValue(0), 1e-4);
        assertEquals(10.0, h.maxValue(0), 1e-4);
        assertEquals(10.0, h.minValue(1), 1e-4);
        assertEquals(20.0, h.maxValue(1), 1e-4);

        listener =
                new BSERadialDistributionListener(Math2.ORIGIN_3D,
                        Math2.Z_AXIS, 100.0, 10, true);
        h = listener.getDistribution();
View Full Code Here

                new BSERadialDistributionListener(Math2.ORIGIN_3D,
                        Math2.Z_AXIS, 100.0, 10, true);
        h = listener.getDistribution();
        assertEquals(10, h.binCount());
        assertEquals(0.0, h.minValue(0), 1e-4);
        assertEquals(31.62278, h.maxValue(0), 1e-4);
        assertEquals(31.62278, h.minValue(1), 1e-4);
        assertEquals(44.72136, h.maxValue(1), 1e-4);
        assertEquals(Math.pow(h.maxValue(0), 2) - Math.pow(h.minValue(0), 2),
                Math.pow(h.maxValue(1), 2) - Math.pow(h.minValue(1), 2), 1e-4);
    }
View Full Code Here

        h = listener.getDistribution();
        assertEquals(10, h.binCount());
        assertEquals(0.0, h.minValue(0), 1e-4);
        assertEquals(31.62278, h.maxValue(0), 1e-4);
        assertEquals(31.62278, h.minValue(1), 1e-4);
        assertEquals(44.72136, h.maxValue(1), 1e-4);
        assertEquals(Math.pow(h.maxValue(0), 2) - Math.pow(h.minValue(0), 2),
                Math.pow(h.maxValue(1), 2) - Math.pow(h.minValue(1), 2), 1e-4);
    }

}
View Full Code Here

        assertEquals(10, h.binCount());
        assertEquals(0.0, h.minValue(0), 1e-4);
        assertEquals(31.62278, h.maxValue(0), 1e-4);
        assertEquals(31.62278, h.minValue(1), 1e-4);
        assertEquals(44.72136, h.maxValue(1), 1e-4);
        assertEquals(Math.pow(h.maxValue(0), 2) - Math.pow(h.minValue(0), 2),
                Math.pow(h.maxValue(1), 2) - Math.pow(h.minValue(1), 2), 1e-4);
    }

}
View Full Code Here

        assertEquals(0.0, h.minValue(0), 1e-4);
        assertEquals(31.62278, h.maxValue(0), 1e-4);
        assertEquals(31.62278, h.minValue(1), 1e-4);
        assertEquals(44.72136, h.maxValue(1), 1e-4);
        assertEquals(Math.pow(h.maxValue(0), 2) - Math.pow(h.minValue(0), 2),
                Math.pow(h.maxValue(1), 2) - Math.pow(h.minValue(1), 2), 1e-4);
    }

}
View Full Code Here

        // Create array
        Histogram hist = radialDist.getDistribution();
        double[][] data = new double[channels][2];
       
        for (int i = 0; i < channels; i++) {
            data[i][0] = (hist.minValue(i) + hist.maxValue(i)) / 2.0;
            data[i][1] = hist.counts(i);
        }
       
        // Save dataset
        group.createDataset("data", data);
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.