spv.spectrum.function
Class CCM

java.lang.Object
  extended by java.util.Observable
      extended by spv.spectrum.function.Function
          extended by spv.spectrum.function.BroadBandFunction
              extended by spv.spectrum.function.AbstractExtinction
                  extended by spv.spectrum.function.CCM
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Observer, Constant

 class CCM
extends AbstractExtinction

Cardelli, Clayton, and Mathis extinction curve (ApJ, 1989, vol 345, pp 245).

Version:
1.0 - 26Jun03
Author:
Ivo Busko (Space Telescope Science Institute)

Field Summary
private static java.lang.String myname
           
private static java.lang.String R
           
 
Fields inherited from class spv.spectrum.function.AbstractExtinction
EBV
 
Fields inherited from class spv.spectrum.function.BroadBandFunction
binned_x, binned_y, nbin, serialVersionUID
 
Fields inherited from class spv.spectrum.function.Function
botton_panel, CLASS_ATTRIBUTE, COMPONENT, description, EMPIRICAL, form1, frame, FUNCTION_ATTRIBUTE, gui, name, NAME_ATTRIBUTE, notify, PARAMETER_LIST_ATTRIBUTE, PARENT_SERIAL_NUMBER_ATTRIBUTE, pars, REDDENING, SERIAL_NUMBER_ATTRIBUTE, top_panel, type, units, user_id, USERID_ATTRIBUTE
 
Fields inherited from interface spv.util.Constant
DATA_MARKER, DMAX, DMIN, IINDEF, IMAX, IMIN, MODEL_ID, NORMALIZED_ID, RESIDUALS_ID
 
Constructor Summary
CCM()
          Constructor.
CCM(double ebv, double r)
          Constructor.
 
Method Summary
 void addRawValues(double[] xvar, double[] yvar)
          Expresses the function over an array of independent variable values, and applies the computed values to the supplied array of dependent variable values.
 java.lang.String getID()
          Gets the function ID.
 
Methods inherited from class spv.spectrum.function.AbstractExtinction
coarseAdjust, finishConstructor, interp, isEmission
 
Methods inherited from class spv.spectrum.function.BroadBandFunction
clone, getValidRangeMaxLimit, getValidRangeMinLimit, isNarrow, recenter, release
 
Methods inherited from class spv.spectrum.function.Function
addParameter, addParameterGUI, constrainTo, dispose, enableNotifications, getDescription, getFrameSize, GetInvalidSerialNumber, getName, getNumberOfParameters, getParameter, getParameter, getParent, getParentSerialNumber, getSerialNumber, getType, getUnits, getWidget, getWidget, isShowing, print, refreshGUI, removeParameter, replaceParameterValue, resetObservables, saveAsXML, setChanged, setDefaultMode, setInternalLinks, setParametersFromList, setParentSerialNumber, setParentSerialNumber, setSerialNumber, setUserID, setValue, toString, update
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

R

private static final java.lang.String R

myname

private static final java.lang.String myname
Constructor Detail

CCM

CCM(double ebv,
    double r)
Constructor.

Parameters:
ebv - the E(B-V) value
r - the R value

CCM

public CCM()
Constructor.

Method Detail

getID

public java.lang.String getID()
Description copied from class: Function
Gets the function ID. This method should generate a string that uniquely identifies the object. An example could be the function name followed by the value of a important parameter value, such as "GAUSSIAN center=1.234"

Overrides:
getID in class AbstractExtinction
Returns:
the ID

addRawValues

public void addRawValues(double[] xvar,
                         double[] yvar)
Description copied from class: Function
Expresses the function over an array of independent variable values, and applies the computed values to the supplied array of dependent variable values. Sequential application of this method over a range of Function subtypes enables the building of multi-component models with both emission (additive) and absorption (multiplicative transparency) components. It is up to each subclass to decide how exactly it should act on the dependent variable array.

No checking for Constant.INDEF input values is performed.

Specified by:
addRawValues in class Function
Parameters:
xvar - array with the independent variable values
yvar - on input: array with the dependent variable values. on output: array with the updated dependent variable values