optics
Class GaussianSpectrum

java.lang.Object
  extended by optics.Optics
      extended by optics.WaveLengthFunction
          extended by optics.WaveLengthSpectrum
              extended by optics.ConstantSpectrum
                  extended by optics.GaussianSpectrum
Direct Known Subclasses:
PhotopicSpectrum, ScotopicSpectrum

public class GaussianSpectrum
extends ConstantSpectrum

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 GaussianSpectrum.
 
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

peak

protected double peak
Location of the peak in microns


width

protected double width
Width of Gaussian, being exp(-1) intensity point.

Constructor Detail

GaussianSpectrum

public GaussianSpectrum(double b,
                        double peak,
                        double width)
Form a GaussianSpectrum with specified brightness, peak wavelength and width.

Parameters:
b - brightness.
peak - peak wavelength in microns
width - width specified by exp(-1) point in microns.

GaussianSpectrum

public GaussianSpectrum(double peak,
                        double width)
Form a GaussianSpectrum with specified peak wavelength and and width with defaults unit brightness.

Parameters:
peak - peak wavelength in microns
width - width specified by exp(-1) point in microns.

GaussianSpectrum

public GaussianSpectrum(GaussianSpectrum s)
Form a GaussianSpectrum with paramter from speficied GaussianSpectrum.

Parameters:
s - the spectrum.
Method Detail

clone

public GaussianSpectrum clone()
Methed to clone the current GuassianSpectrum

Overrides:
clone in class ConstantSpectrum
Returns:
GaussianSpectrum clone of current.

setGaussian

public void setGaussian(double pk,
                        double w)
Method to set the peak and width.

Parameters:
pk - the peak in microns.
w - the width specified by exp(-1) point in microns.

getIntensity

public double getIntensity(double lambda)
Method to return intensity at a specified wavelength

Overrides:
getIntensity in class ConstantSpectrum
Parameters:
lambda - the wavelength in microns.
Returns:
double the intensity.

toString

public String toString()
Public toString method to report type and information

Overrides:
toString in class ConstantSpectrum
Returns:
String informative String.