Package edu.cnu.mdi.splot.pdata
Class Snapshot
java.lang.Object
edu.cnu.mdi.splot.pdata.Snapshot
A snapshot of data points. This is to avoid concurrent modification issues.
- Author:
- heddle
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
x
public final double[] xThe x data -
y
public final double[] yThe y data -
e
public final double[] eThe error data (sigmaY)
-
-
Constructor Details
-
Snapshot
public Snapshot(double[] x, double[] y, double[] e) Create a snapshot. Presumably the object creating the snapshot has copied the data and is locking the backing data during the copy.- Parameters:
x- the x datay- the y datae- the error data (sigmaY) may be null
-
-
Method Details
-
length
public int length()Get the number of data points in the snapshot.- Returns:
- the number of data points in the snapshot.
-