sv.graph
Class Data1DIndex
java.lang.Object
sv.graph.Data1D
sv.graph.Data1DIndex
- All Implemented Interfaces:
- java.io.Serializable
- public class Data1DIndex
- extends Data1D
The Data1DIndex class stores an indexed dataset for f(x).
- See Also:
- Serialized Form
Constructor Summary |
Data1DIndex()
|
Data1DIndex(java.lang.String name,
int nPoints,
float[] x,
float[] fx,
float index)
Create the dataset. |
Method Summary |
void |
print()
|
java.lang.Exception |
read(java.io.DataInputStream in)
|
Methods inherited from class sv.graph.Data1D |
addFx, addPoints, addX, closestPoint, closestXPoint, draw, drawLine, drawMarker, setColor, setThickness, shortestYDistance |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Data1DIndex
public Data1DIndex()
Data1DIndex
public Data1DIndex(java.lang.String name,
int nPoints,
float[] x,
float[] fx,
float index)
- Create the dataset.
- Parameters:
name
- - The name of the dataset.nPoints
- - The number of points in the dataset.x
- - Array of X values.fx
- - Array of f(X) values.index
- - The index value for this dataset.
read
public java.lang.Exception read(java.io.DataInputStream in)
- Overrides:
read
in class Data1D
print
public void print()