|
||||||||||
| 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.EditableSpectrum
public class EditableSpectrum
A base implementation of the ISpectrumData interface for spectra in which the channel data should be mutable.
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
Company: National Institute of Standards and Technology
| Field Summary |
|---|
| Fields inherited from class gov.nist.microanalysis.EPQLibrary.BaseSpectrum |
|---|
mHashCode, NULL_HASH, NullSpectrum |
| Constructor Summary | |
|---|---|
EditableSpectrum(double chWidth,
double zeroOffset,
double[] chData)
Constructs a EditableSpectrum from an array of channel data as doubles |
|
EditableSpectrum(double chWidth,
double zeroOffset,
int[] chData)
Constructs a EditableSpectrum from an array of channel data as integers |
|
EditableSpectrum(int nChannels,
double chWidth,
double zeroOffset)
EditableSpectrum - Create a blank editable spectrum. |
|
EditableSpectrum(ISpectrumData sd)
EditableSpectrum - Create an editable spectrum that is a duplicate of the specified spectrum. |
|
| Method Summary | |
|---|---|
void |
clearChannels()
clearChannels - Set all channel data to 0.0 |
int |
getChannelCount()
getChannelCount - See ISpectrumData |
double |
getChannelWidth()
getChannelWidth |
protected double[] |
getCounts()
getCounts - Get the channel data as a raw double array. |
double |
getCounts(int i)
getCounts - See ISpectrumData |
SpectrumProperties |
getProperties()
getProperties - See ISpectrumData |
double |
getZeroOffset()
getZeroOffset - See ISpectrumData |
protected void |
setCounts(int i,
double counts)
setCounts - Set the counts for the specified channel. |
void |
setProperties(SpectrumProperties sp)
setProperties - Set the SpectrumProperty object assigned to this spectrum to the specified SpectrumProperty set. |
| Methods inherited from class gov.nist.microanalysis.EPQLibrary.BaseSpectrum |
|---|
compareTo, equals, hashCode, initializeSpectrumIndex, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EditableSpectrum(int nChannels,
double chWidth,
double zeroOffset)
nChannels - intchWidth - doublezeroOffset - double
public EditableSpectrum(double chWidth,
double zeroOffset,
double[] chData)
chWidth - zeroOffset - chData -
public EditableSpectrum(double chWidth,
double zeroOffset,
int[] chData)
chWidth - zeroOffset - chData - public EditableSpectrum(ISpectrumData sd)
sd - ISpectrumData| Method Detail |
|---|
public void setProperties(SpectrumProperties sp)
sp - public final int getChannelCount()
public final double getChannelWidth()
public double getCounts(int i)
i - int
protected double[] getCounts()
protected void setCounts(int i,
double counts)
i - intcounts - doublepublic final SpectrumProperties getProperties()
public final double getZeroOffset()
public final void clearChannels()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||