public class PolychromaticXRaySpectrum
extends java.lang.Object
This class creates a model of a polychromatic X Ray spectrum.
The default parameters are:
minimum energy = 10keV
maximum energy = 150kev
resolution delta= 0.5
peak voltage = 125kVp
time current product = 1;
Constructor and Description |
---|
PolychromaticXRaySpectrum()
Creates a new polychromatic X-Ray spectrum satisfying default parameters.
|
PolychromaticXRaySpectrum(double delta)
Creates a new polychromatic X-Ray spectrum with successive energies having a difference of delta
|
PolychromaticXRaySpectrum(double min,
double max,
double delta,
double peakVoltage,
double timeCurrentProduct)
Creates a new polychromatic X-Ray spectrum satisfying the parameters below.
|
Modifier and Type | Method and Description |
---|---|
void |
add(double energy,
double count) |
double |
getIntensity(double energy)
Intensity of XRay at given energy (kev)
|
int |
getPhotonCount() |
double[] |
getPhotonEnergies() |
int |
size()
Determine the number of discrete energies used to describe the spectrum
|
public PolychromaticXRaySpectrum()
public PolychromaticXRaySpectrum(double delta)
delta
- is the difference between successive energies starting at minpublic PolychromaticXRaySpectrum(double min, double max, double delta, double peakVoltage, double timeCurrentProduct)
min
- is minimum energy in keVmax
- is maximum energy in keVdelta
- is resolutionpeakVoltage
- is peak voltagetimeCurrentProduct
- is time current productpublic double getIntensity(double energy)
energy
- is energy in kevpublic int getPhotonCount()
public double[] getPhotonEnergies()
public int size()
public void add(double energy, double count)