dwvisser.statistics
Class LinearFunction

java.lang.Object
  |
  +--dwvisser.statistics.LinearFunction
All Implemented Interfaces:
Function, UncertainFunction

public class LinearFunction
extends java.lang.Object
implements UncertainFunction


Constructor Summary
LinearFunction(double a, double b, double delx)
           
LinearFunction(double a, double siga, double b, double sigb, double delx)
           
LinearFunction(UncertainNumber a, UncertainNumber b, double delx)
           
 
Method Summary
 UncertainNumber evaluate(UncertainNumber[] x)
          Given an array of uncertain numbers, return back a function value.
 double valueAt(double x)
          Evaluate the function.
 
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)

LinearFunction

public LinearFunction(double a,
                      double siga,
                      double b,
                      double sigb,
                      double delx)

LinearFunction

public LinearFunction(double a,
                      double b,
                      double delx)
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
StatisticsException

valueAt

public double valueAt(double x)
Description copied from interface: Function
Evaluate the function.

Specified by:
valueAt in interface Function
Returns:
value of the function at x