|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoptics.Optics
optics.WaveLengthFunction
optics.WaveLengthSpectrum
optics.ConstantSpectrum
optics.GaussianSpectrum
public class GaussianSpectrum
Class to implement an Gaussian spectral response with specified peak and width.
Field Summary | |
---|---|
protected double |
peak
Location of the peak in microns |
protected double |
width
Width of Gaussian, being exp(-1) intensity point. |
Fields inherited from class optics.ConstantSpectrum |
---|
brightness |
Fields inherited from class optics.WaveLengthFunction |
---|
maxPlotLambda, minPlotLambda, plotPoints |
Fields inherited from class optics.Optics |
---|
DEFAULT_WAVELENGTH, errorStream, fmt, MICRONS, version |
Constructor Summary | |
---|---|
GaussianSpectrum(double peak,
double width)
Form a GaussianSpectrum with specified
peak wavelength and and width with defaults unit brightness. |
|
GaussianSpectrum(double b,
double peak,
double width)
Form a GaussianSpectrum with specified
brightness, peak wavelength and width. |
|
GaussianSpectrum(GaussianSpectrum s)
Form a GaussianSpectrum with paramter
from speficied |
Method Summary | |
---|---|
GaussianSpectrum |
clone()
Methed to clone the current GuassianSpectrum |
double |
getIntensity(double lambda)
Method to return intensity at a specified wavelength |
void |
setGaussian(double pk,
double w)
Method to set the peak and width. |
String |
toString()
Public toString method to report type and information |
Methods inherited from class optics.ConstantSpectrum |
---|
setBrightness |
Methods inherited from class optics.WaveLengthSpectrum |
---|
getValue |
Methods inherited from class optics.WaveLengthFunction |
---|
getPlot, getPlotPoints, setPlot, setPlotPoints, setPlotRange, setPlotRange, toGraph, toPlot, toPlot, toPlot |
Methods inherited from class optics.Optics |
---|
getDefaultWaveLength, getErrorStream, getFormatString, getName, getStaticName, getVersion, printError, setDefaultWaveLength, setErrorStream, setFormatString, setMicrons |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected double peak
protected double width
Constructor Detail |
---|
public GaussianSpectrum(double b, double peak, double width)
GaussianSpectrum
with specified
brightness, peak wavelength and width.
b
- brightness.peak
- peak wavelength in micronswidth
- width specified by exp(-1) point in microns.public GaussianSpectrum(double peak, double width)
GaussianSpectrum
with specified
peak wavelength and and width with defaults unit brightness.
peak
- peak wavelength in micronswidth
- width specified by exp(-1) point in microns.public GaussianSpectrum(GaussianSpectrum s)
GaussianSpectrum
with paramter
from speficied
s
- the spectrum.Method Detail |
---|
public GaussianSpectrum clone()
GuassianSpectrum
clone
in class ConstantSpectrum
GaussianSpectrum
clone of current.public void setGaussian(double pk, double w)
pk
- the peak in microns.w
- the width specified by exp(-1) point in microns.public double getIntensity(double lambda)
getIntensity
in class ConstantSpectrum
lambda
- the wavelength in microns.
double
the intensity.public String toString()
toString
in class ConstantSpectrum
String
informative String.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |