hep.lcd.contrib.util.functions
Class GaussianBoxFunction

java.lang.Object
  |
  +--java.util.Observable
        |
        +--jas.hist.Basic1DFunction
              |
              +--jas.hist.Fittable1DFunction
                    |
                    +--hep.lcd.contrib.util.functions.GaussianBoxFunction

public class GaussianBoxFunction
extends Fittable1DFunction

Fits to a square box distribution convoluted with a Gaussian resolution function.

Version:
1.10
Author:
David Wagner
See Also:
Serialized Form
Source Code:
GaussianBoxFunction.java

Fields inherited from interface jas.hist.DataSource
DATE, DELTATIME, DOUBLE, INTEGER, STRING
 
Constructor Summary
GaussianBoxFunction(double xmin, double xmax, double ymin, double ymax)
          Public constructor called by jas.swingstudio.
 
Method Summary
 String[] getParameterNames()
           
 double[] getParameterValues()
           
 String getTitle()
           
 void setFit(Fitter fit, double[] value)
           
 void setParameter(int index, double value)
           
 double valueAt(double x)
          Return the value at a particular x, for the stored the parameters.
 double valueAt(double x, double[] a)
          Return the value at a particular x for the supplied parameters.
 
Methods inherited from class jas.hist.Fittable1DFunction
clearFit, clearFitParams, destroy, getDerivatives, getExtendedStatistic, getFit, getIncludeParametersInFit, getStatistic, getStatisticNames, initIncludeParametersInFit, setFit, setIncludeParameterInFit
 
Methods inherited from class jas.hist.Basic1DFunction
getStatistics, setBatch, setChanged, setChanged
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GaussianBoxFunction

public GaussianBoxFunction(double xmin,
                           double xmax,
                           double ymin,
                           double ymax)
Public constructor called by jas.swingstudio. It initializes the parameters to correspond with a calorimeter with a resolution of 1% + 15% / sqrt(E).
Parameters:
xmin - lower edge of the histogram
xmax - upper edge of the histogram
ymin - lower edge of histogram
ymax - upper edge of histogram
Method Detail

valueAt

public double valueAt(double x)
Return the value at a particular x, for the stored the parameters.
Overrides:
valueAt in class Basic1DFunction
Parameters:
x - the x-coordinate.

valueAt

public double valueAt(double x,
                      double[] a)
Return the value at a particular x for the supplied parameters.
Overrides:
valueAt in class Fittable1DFunction
Parameters:
x - the x-coordinate.
a - the array of parameters

getParameterNames

public String[] getParameterNames()
Overrides:
getParameterNames in class Basic1DFunction

getParameterValues

public double[] getParameterValues()
Overrides:
getParameterValues in class Basic1DFunction

setParameter

public void setParameter(int index,
                         double value)
Overrides:
setParameter in class Basic1DFunction

setFit

public void setFit(Fitter fit,
                   double[] value)
Overrides:
setFit in class Fittable1DFunction

getTitle

public String getTitle()
Overrides:
getTitle in class Basic1DFunction


The LCD Group