Package gov.nist.microanalysis.Utility

Examples of gov.nist.microanalysis.Utility.HistogramDouble3D


                XRayTransition xrt = xrtransport.getTransition();

                if (xrt != null) {
                    double[] pos = xrtransport.getInitialPos();

                    HistogramDouble3D emittedDistribution =
                            emittedDistributions.get(xrt);
                    if (emittedDistribution == null) {
                        emittedDistribution = createEmptyDistribution();
                        emittedDistributions.put(xrt, emittedDistribution);
                    }
                    emittedDistribution.add(pos[0], pos[1], pos[2],
                            xrtransport.getIntensity());

                    HistogramDouble3D generatedDistribution =
                            generatedDistributions.get(xrt);
                    if (generatedDistribution == null) {
                        generatedDistribution = createEmptyDistribution();
                        generatedDistributions.put(xrt, generatedDistribution);
                    }
                    generatedDistribution.add(pos[0], pos[1], pos[2],
                            xrtransport.getGenerated());
                }
            }
        }
            break;
View Full Code Here


     * @param xrt
     *            x-ray transition
     * @return emitted radial distribution
     */
    public HistogramDouble3D getEmittedDistribution(XRayTransition xrt) {
        HistogramDouble3D distribution = emittedDistributions.get(xrt);
        if (distribution == null)
            distribution = createEmptyDistribution();
        return distribution;
    }
View Full Code Here

     * @param xrt
     *            x-ray transition
     * @return generated radial distribution
     */
    public HistogramDouble3D getGeneratedDistribution(XRayTransition xrt) {
        HistogramDouble3D distribution = generatedDistributions.get(xrt);
        if (distribution == null)
            distribution = createEmptyDistribution();
        return distribution;
    }
View Full Code Here

    }



    protected HistogramDouble3D createEmptyDistribution() {
        return new HistogramDouble3D(xBinMins, xMax,
                yBinMins, yMax,
                zBinMins, zMax);
    }
View Full Code Here

TOP

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

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.