org.jscience.physics.nuclear.kinematics.math.statistics
Class LinearFunction

java.lang.Object
  extended by org.jscience.physics.nuclear.kinematics.math.statistics.LinearFunction
All Implemented Interfaces:
Function, UncertainFunction

public class LinearFunction
extends java.lang.Object
implements UncertainFunction

DOCUMENT ME!


Constructor Summary
LinearFunction(double a, double b, double delx)
          Creates a new LinearFunction object.
LinearFunction(double a, double siga, double b, double sigb, double delx)
          Creates a new LinearFunction object.
LinearFunction(UncertainNumber a, UncertainNumber b, double delx)
          Creates a new LinearFunction object.
 
Method Summary
 UncertainNumber evaluate(UncertainNumber[] x)
          Given an array of uncertain numbers, return back a function value.
 double valueAt(double x)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearFunction

public LinearFunction(UncertainNumber a,
                      UncertainNumber b,
                      double delx)
Creates a new LinearFunction object.

Parameters:
a - DOCUMENT ME!
b - DOCUMENT ME!
delx - DOCUMENT ME!

LinearFunction

public LinearFunction(double a,
                      double siga,
                      double b,
                      double sigb,
                      double delx)
Creates a new LinearFunction object.

Parameters:
a - DOCUMENT ME!
siga - DOCUMENT ME!
b - DOCUMENT ME!
sigb - DOCUMENT ME!
delx - DOCUMENT ME!

LinearFunction

public LinearFunction(double a,
                      double b,
                      double delx)
Creates a new LinearFunction object.

Parameters:
a - DOCUMENT ME!
b - DOCUMENT ME!
delx - DOCUMENT ME!
Method Detail

evaluate

public UncertainNumber evaluate(UncertainNumber[] x)
                         throws StatisticsException
Given an array of uncertain numbers, return back a function value.

Specified by:
evaluate in interface UncertainFunction
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
StatisticsException - DOCUMENT ME!

valueAt

public double valueAt(double x)
DOCUMENT ME!

Specified by:
valueAt in interface Function
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!