Uses of Interface
gov.nist.microanalysis.EPQLibrary.ISpectrumData

Packages that use ISpectrumData
gov.nist.microanalysis.EPQLibrary   
gov.nist.microanalysis.EPQTools   
 

Uses of ISpectrumData in gov.nist.microanalysis.EPQLibrary
 

Classes in gov.nist.microanalysis.EPQLibrary that implement ISpectrumData
 class BaseSpectrum
           Implements a set of utility functions that are of use across the full set of ISpectrumData based classes.
 class DerivedSpectrum
           A spectrum derived from another spectrum.
 class EditableSpectrum
           A base implementation of the ISpectrumData interface for spectra in which the channel data should be mutable.
 class EDSDetector
           Models the behavior of an EDS detector.
 class Microcalorimeter
           Implements a basic model of a Microcalorimeter detector..
 class NoisySpectrum
           Adds Poisson noise to a spectrum.
 class SpectrumMath
           SpectrumMath makes it easy to add or subtract a multiple of the counts in one spectrum from another spectrum.
 

Fields in gov.nist.microanalysis.EPQLibrary declared as ISpectrumData
protected  ISpectrumData DerivedSpectrum.mSource
           
 

Methods in gov.nist.microanalysis.EPQLibrary that return ISpectrumData
 ISpectrumData DerivedSpectrum.getBaseSpectrum()
          getBaseSpectrum - Return the spectrum on which this one was based.
static ISpectrumData[] SpectrumUtils.partition(ISpectrumData src, int nParts)
           Randomly subdivides the src spectrum into nParts different spectra.
 

Methods in gov.nist.microanalysis.EPQLibrary with parameters of type ISpectrumData
 void SpectrumMath.add(ISpectrumData src, double k)
          add - Add k times counts in the specified spectrum into the sum spectrum.
static EditableSpectrum SpectrumUtils.addNoiseToSpectrum(ISpectrumData src, double k)
          Creates a new spectrum from the specified source spectrum by adding Poissonian simulated counting statistic noise.
static boolean SpectrumUtils.areCompatible(ISpectrumData sd1, ISpectrumData sd2)
          areCompatible - Are the channel count, channel width and zero offset on these two spectra equal?
static double SpectrumUtils.avgCounts(ISpectrumData sd)
          avgCounts - Returns the average number of counts over all channels
static double SpectrumUtils.avgEnergyForChannel(ISpectrumData sd, int ch)
           
static int SpectrumUtils.bound(ISpectrumData sd, int ch)
          bound - Returns ch bounded so that it exists on the interval 0 to sd.getChannelCount()-1.
static int SpectrumUtils.channelForEnergy(ISpectrumData sd, double e)
          channelForEnergy - Returns the index of the channel which contains the specified channel.
static double SpectrumUtils.dotProduct(ISpectrumData spec1, ISpectrumData spec2)
          dotProduct - Returns the dot product of the channels of each specified spectrum.
static double SpectrumUtils.DuaneHuntLimit(ISpectrumData spec)
          DuaneHuntLimit - Returns an estimate of the Duane-Hunt limit in eV.
static double[] SpectrumUtils.energyArray(ISpectrumData sd)
          energyArray - Creates an array of doubles representing the energy axis.
static double SpectrumUtils.getBeamEnergy(ISpectrumData sd)
          getBeamEnergy - Returns the nominal beam energy for the specified spectrum.
static double SpectrumUtils.getFWHMAtMnKA(ISpectrumData src, double def)
          getFWHMAtMnKA - Extracts the FWHM at MnKa from the SpectrumProperties associated with the source ISpectrumData.
static double SpectrumUtils.integrate(ISpectrumData sd, double minE, double maxE)
          Integrate the counts between minE and maxE taking into account the partial channels when minE and maxE don't exactly match channel boundaries.
 boolean DerivedSpectrum.isDerivedFrom(ISpectrumData spec)
          isDerivedFrom - Is this spectrum derived from the argument spectrum? (Recursively checks the whole chain of derivation if this derived spectrum is derived from yet another.)
static int SpectrumUtils.maxChannel(ISpectrumData sd)
          maxChannel - Returns the highest channel that has the maximum count value.
static double SpectrumUtils.maxEnergyForChannel(ISpectrumData sd, int ch)
           
static int SpectrumUtils.minChannel(ISpectrumData sd)
          minChannel - Returns the highest channel that has the minimum count value.
static double SpectrumUtils.minEnergyForChannel(ISpectrumData sd, int ch)
          energyForChannel - Compute the energy of the specified channel.
static ISpectrumData[] SpectrumUtils.partition(ISpectrumData src, int nParts)
           Randomly subdivides the src spectrum into nParts different spectra.
static java.lang.String SpectrumUtils.spectrumDataToText(ISpectrumData sd, double eLow, double eHigh, boolean withEnergies)
          spectrumDataToText - Convert the spectral data in the specified energy range into a String desscribing the raw channel data.
static EditableSpectrum SpectrumUtils.subSampleSpectrum(ISpectrumData sd, double liveTime)
           Create a new ISpectrumData object containing a spectrum derived from the specified spectrum.
 void SpectrumMath.subtract(ISpectrumData src, double k)
          add - Subtract k times the counts from the specified spectrum from the sum spectrum.
static double SpectrumUtils.sumCounts(ISpectrumData sd, int minCh, int maxCh)
          sumCounts - Returns the number of counts in the channels in the range [minCh, maxCh)
static java.awt.Color SpectrumUtils.toColor(ISpectrumData spec)
          toColor - Converts a spectrum to a color in a manner that is inspired by the way our eyes convert multiple wavelengths into three signals.
static double[] SpectrumUtils.toDoubleArray(ISpectrumData spec)
          toDoubleArray - Returns the spectrum channel data as an array of doubles.
static java.awt.image.BufferedImage SpectrumUtils.toImage(ISpectrumData spec, int height)
          toImage - Displays the spectrum as a grey-scale bitmap.
static int[] SpectrumUtils.toIntArray(ISpectrumData spec)
          toIntArray - Returns the spectrum channel data as an array of int.
static double SpectrumUtils.totalCounts(ISpectrumData sd)
          totalCounts - Returns the number of counts in all channels
static void SpectrumUtils.verifyCompatibility(ISpectrumData sd1, ISpectrumData sd2)
          verifyCompatibility - Verifys that two spectra are compatible.
 

Constructors in gov.nist.microanalysis.EPQLibrary with parameters of type ISpectrumData
DerivedSpectrum(ISpectrumData src)
          DerivedSpectrum - Create a new DerivedSpectrum based on the specified source spectrum.
EditableSpectrum(ISpectrumData sd)
          EditableSpectrum - Create an editable spectrum that is a duplicate of the specified spectrum.
EDSDetector(ISpectrumData spec, double fwhmAtMnKA)
          EDSDetector - Construct a new EDSDetector object to represent an energy dispersive x-ray detector.
NoisySpectrum(ISpectrumData src, double scale, int seed)
          NoisySpectrum - Create a new noisy spectrum from the data in src scaled by the factor scale (nominally 0
SpectrumMath(ISpectrumData src)
          Constructs a SpectrumMath
 

Uses of ISpectrumData in gov.nist.microanalysis.EPQTools
 

Classes in gov.nist.microanalysis.EPQTools that implement ISpectrumData
 class EMSAFile
           A class for reading EMSA files
 class SerializableSpectrum
           A class to make ISpectrumData instances Serializable.
 

Methods in gov.nist.microanalysis.EPQTools with parameters of type ISpectrumData
static int WriteSpectrumAsBinary.length(ISpectrumData spec)
          length - Returns the number of atomic data items that will be written to the stream.
static int WriteSpectrumAsBinary.size(ISpectrumData spec)
          size - Returns the number of bytes that would be output to the OutputStream by WriteSpectrumAsBinary.write.
static void WriteSpectrumAsCSV.write(ISpectrumData spec, java.io.OutputStream os)
           
static void WriteSpectrumAsBinary.write(ISpectrumData spec, java.io.OutputStream os)
          write - Write the argument ISpectrumData object to the specified OutputStream.
static void WriteSpectrumAsEMSA1_0.write(ISpectrumData spec, java.io.OutputStream os, boolean forDtsa)
           
 

Constructors in gov.nist.microanalysis.EPQTools with parameters of type ISpectrumData
SerializableSpectrum(ISpectrumData src)
          Constructs a SerializableSpectrum based on the specified input spectrum