net.quies.math.plot
Class Function
java.lang.Object
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
Function
public Function(String description)
- Parameters:
description - a short description of the function.- Since:
- 1.0
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