MuMassCalculator Initial Release
Pre-release
Pre-release
MuMassCalculator
Initial release of a Java library for computing mass attenuation coefficients (see readme.md for details).
MuMassCalculator was developed with JavaSE-1.8 (64-bit) and tested in the Eclipse IDE and as an ImageJ PlugIn with ImageJ 1.53i
MuMassCalculator has no ImageJ dependencies.
Main Functions
See source comments for additional function information
Type | Method | Description |
---|---|---|
double | getFormulaWeight(java.lang.String theFormula) | Returns the formula weight of the formula |
double[] | getMevArray(java.lang.String theFormula) | Returns the list of tabulated x-ray energies for the formula, useful in plotting spectra with absorption edges. |
double[] | getMevArray(java.lang.String theFormula, double minMev, double maxMev) | Returns the list of tabulated x-ray energies between minMev and maxMev for the formula, useful in plotting spectra with absorption edges. |
double[] | getMeVfromMuLin(java.lang.String formula, double linearCoeff, double gmPerCC, java.lang.String muMassType) | Returns the photon energy(s) that will produce the observed linear attenuation coefficient for the formula |
double[] | getMeVfromMuLinRatio(java.lang.String formula1, double linearCoeff1, double density1, java.lang.String formula2, double linearCoeff2, double density2, java.lang.String muMassType) | Returns the photon energy(s) that will produce the observed linear attenuation coefficient ratio of two formulas |
double | getMuMass(java.lang.String theFormula, double theMeV, java.lang.String muMassType) | Returns the mass attenuation coefficient for atoms and formulas |
java.lang.String[] | getMuMassTypes() | Returns list of recognized cross section types |
double | muLinToMolPerM3(double linearCoeff, double massCoeff, double formulaGmPerCC) | Converts observed linear attenuation coefficient to concentration. |
double | spectrumKramers(double tubeVoltageKV, double tubeCurrentMa, java.lang.String targetAtomSymbol, double meV) | Estimates the output of a conventional x-ray source (reflection target) using the Kramers equation. |