optics
Class SellmeirIndex

java.lang.Object
  extended by optics.Optics
      extended by optics.WaveLengthFunction
          extended by optics.RefractiveIndex
              extended by optics.SellmeirIndex

public class SellmeirIndex
extends RefractiveIndex

Class to implement a general Sellmeir Index defined by two double[] arrays of weights and wavelengths


Field Summary
 
Fields inherited from class optics.RefractiveIndex
air, currentIndex, currentWaveLength
 
Fields inherited from class optics.WaveLengthFunction
maxPlotLambda, minPlotLambda, plotPoints
 
Fields inherited from class optics.Optics
DEFAULT_WAVELENGTH, errorStream, fmt, MICRONS
 
Constructor Summary
SellmeirIndex(double[] a, double[] lambda)
          Constructor to form a SellmeirIndex with weight and wavelength arrays.
SellmeirIndex(SellmeirIndex s)
          Constructor taking the weights set by specified SellmeirIndex.
 
Method Summary
 SellmeirIndex clone()
          Form a clone of the current SellmeirIndex.
 double[] getA()
          Method to get the double array holding the A values.
 double getIndex(double lam)
          Method to return refractive index for a specified wavelength.
 double[] getLambda()
          Method to get the double array holding the Lambda values.
 void setA(double[] a)
          Method to set the weighting array.
 void setLambda(double[] l)
          Method to set the lambda array.
 java.lang.String toString()
          Deafult method to format to a String.
 
Methods inherited from class optics.RefractiveIndex
fromString, fromTokens, getIndex, getIndex, getValue
 
Methods inherited from class optics.WaveLengthFunction
getPlot, getPlotPoints, 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
 

Constructor Detail

SellmeirIndex

public SellmeirIndex(double[] a,
                     double[] lambda)
Constructor to form a SellmeirIndex with weight and wavelength arrays. The internal

Parameters:
a - the a array.
lambda - the lambda arrays in microns

SellmeirIndex

public SellmeirIndex(SellmeirIndex s)
Constructor taking the weights set by specified SellmeirIndex.

Parameters:
s - the specifying index
Method Detail

clone

public SellmeirIndex clone()
Form a clone of the current SellmeirIndex.

Overrides:
clone in class java.lang.Object
Returns:
SellmeirIndex clone of current

setA

public void setA(double[] a)
Method to set the weighting array.

Parameters:
a - the weight array.

getA

public double[] getA()
Method to get the double array holding the A values.

Returns:
double[] the A values.

setLambda

public void setLambda(double[] l)
Method to set the lambda array.

Parameters:
l - the lambda array.

getLambda

public double[] getLambda()
Method to get the double array holding the Lambda values.

Returns:
double[] the Lambda values.

toString

public java.lang.String toString()
Deafult method to format to a String.

Overrides:
toString in class java.lang.Object
Returns:
String Formatted String.

getIndex

public double getIndex(double lam)
Method to return refractive index for a specified wavelength.

Specified by:
getIndex in class RefractiveIndex
Parameters:
lam - wavelength in microns
Returns:
double index at specified wavelength.