Package gov.nist.microanalysis.Utility

Examples of gov.nist.microanalysis.Utility.HistogramDouble


                    "The normal must be an array of length 3.");
        this.normal = Math2.normalize(normal);

        double[] binMins =
                RadialDistributionUtil.calculateBinMins(rmax, nBins, equalArea);
        emptyDistribution = new HistogramDouble(binMins, rmax);

        emittedDistributions = new TreeMap<>();
        generatedDistributions = new TreeMap<>();
    }
View Full Code Here


                    double[] pos = xrtransport.getInitialPos();
                    double radius =
                            Math2.magnitude(Math2.cross(normal,
                                    Math2.minus(center, pos)));

                    HistogramDouble emittedDistribution =
                            emittedDistributions.get(xrt);
                    if (emittedDistribution == null) {
                        emittedDistribution = emptyDistribution.clone();
                        emittedDistributions.put(xrt, emittedDistribution);
                    }
                    emittedDistribution.add(radius, xrtransport.getIntensity());

                    HistogramDouble generatedDistribution =
                            generatedDistributions.get(xrt);
                    if (generatedDistribution == null) {
                        generatedDistribution = emptyDistribution.clone();
                        generatedDistributions.put(xrt, generatedDistribution);
                    }
                    generatedDistribution.add(radius,
                            xrtransport.getGenerated());
                }
            }
        }
            break;
View Full Code Here

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

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

TOP

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

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.