org.jscience.mathematics.analysis
Class LinearDoubleFunction

java.lang.Object
  extended by org.jscience.mathematics.analysis.DoubleFunction
      extended by org.jscience.mathematics.analysis.LinearDoubleFunction
All Implemented Interfaces:
java.io.Serializable, Field.Member, Ring.Member, AbelianGroup.Member, AbstractMapping, C1Function, C2Function, PrimitiveMapping, Member

public class LinearDoubleFunction
extends DoubleFunction
implements C2Function

The linear function class.

See Also:
Serialized Form

Constructor Summary
LinearDoubleFunction(double m, double p)
          Constructs a linear function, y=mx+p
 
Method Summary
 DoubleFunction differentiate()
          DOCUMENT ME!
 double map(double x)
          DOCUMENT ME!
 DoubleFunction secondDerivative()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.mathematics.analysis.DoubleFunction
add, add, compose, cos, divide, divide, exp, getIntervalsList, inverse, log, map, map, map, multiply, multiply, negate, power, setIntervalsList, sin, sqrt, subtract, subtract, taylorExpand, tensor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearDoubleFunction

public LinearDoubleFunction(double m,
                            double p)
Constructs a linear function, y=mx+p

Parameters:
m - DOCUMENT ME!
p - DOCUMENT ME!
Method Detail

map

public double map(double x)
DOCUMENT ME!

Specified by:
map in interface PrimitiveMapping
Specified by:
map in class DoubleFunction
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!
See Also:
org.jscience.mathematics.analysis.IntervalList.

differentiate

public DoubleFunction differentiate()
DOCUMENT ME!

Specified by:
differentiate in interface C1Function
Specified by:
differentiate in class DoubleFunction
Returns:
DOCUMENT ME!

secondDerivative

public DoubleFunction secondDerivative()
DOCUMENT ME!

Specified by:
secondDerivative in interface C2Function
Returns:
DOCUMENT ME!