net.quies.math.plot
Class Function

java.lang.Object
  extended by net.quies.math.plot.Function
All Implemented Interfaces:
Serializable

public class Function
extends Object
implements Serializable

A collection of points to represent a function.

Since:
1.0
Author:
Pascal S. de Kloe
See Also:
Serialized Form

Constructor Summary
Function(String description)
           
 
Method Summary
 void addPoint(BigDecimal x, BigDecimal y)
          Defines a ordered pair (x, f(x)).
 String toString()
          Gets a short description of the fuction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Function

public Function(String description)
Parameters:
description - a short description of the function.
Since:
1.0
Method Detail

addPoint

public final void addPoint(BigDecimal x,
                           BigDecimal y)
Defines a ordered pair (x, f(x)).

Parameters:
x - the argument.
y - the value at x or null if f(x) is not defined.
Since:
1.0

toString

public String toString()
Gets a short description of the fuction.

Overrides:
toString in class Object
Since:
1.0