|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nist.microanalysis.EPQLibrary.BaseSpectrum
gov.nist.microanalysis.EPQLibrary.DerivedSpectrum
gov.nist.microanalysis.EPQLibrary.SpectrumMath
public class SpectrumMath
SpectrumMath makes it easy to add or subtract a multiple of the counts in one spectrum from another spectrum. Good for creating sum spectra or residual spectra.
Copyright: Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain
Institution: National Institute of Standards and Technology
| Field Summary |
|---|
| Fields inherited from class gov.nist.microanalysis.EPQLibrary.DerivedSpectrum |
|---|
mSource |
| Fields inherited from class gov.nist.microanalysis.EPQLibrary.BaseSpectrum |
|---|
mHashCode, NULL_HASH, NullSpectrum |
| Constructor Summary | |
|---|---|
SpectrumMath(ISpectrumData src)
Constructs a SpectrumMath |
|
| Method Summary | |
|---|---|
void |
add(ISpectrumData src,
double k)
add - Add k times counts in the specified spectrum into the sum spectrum. |
double |
getCounts(int i)
getCounts - Return the counts in the i-th channel |
void |
subtract(ISpectrumData src,
double k)
add - Subtract k times the counts from the specified spectrum from the sum spectrum. |
| Methods inherited from class gov.nist.microanalysis.EPQLibrary.DerivedSpectrum |
|---|
equals, getBaseSpectrum, getChannelCount, getChannelWidth, getProperties, getZeroOffset, isAlreadyDerivedFrom, isDerivedFrom |
| Methods inherited from class gov.nist.microanalysis.EPQLibrary.BaseSpectrum |
|---|
compareTo, hashCode, initializeSpectrumIndex, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SpectrumMath(ISpectrumData src)
src - | Method Detail |
|---|
public void add(ISpectrumData src,
double k)
src - ISpectrumDatak - double
public void subtract(ISpectrumData src,
double k)
src - ISpectrumDatak - public double getCounts(int i)
ISpectrumData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||