Package ffx.numerics.integrate
Interface DataSet
- All Known Implementing Classes:
CompositeCurve,CosineWave,DoublesDataSet,FunctionDataCurve,PolynomialCurve,SinWave
public interface DataSet
A DataSet represents a set of points along a single dimension, and is able to be numerically
integrated.
- Author:
- Jacob M. Litman
-
Method Summary
Modifier and TypeMethodDescriptiondoublebinWidth()Separation between points along x; should be uniform.double[]Returns copy of the array of points f(x) to integrate (y-axis).doublegetFxPoint(int index) Point f(x) at index.double[]getX()Returns copy of the array of points x (x-axis).booleanDoes this data set have half-width start/end bins.doubleLower bound of the points along x.intNumber of points along x.doubleUpper bound of the points along x.
-
Method Details
-
binWidth
double binWidth()Separation between points along x; should be uniform.- Returns:
- a double.
-
getAllFxPoints
double[] getAllFxPoints()Returns copy of the array of points f(x) to integrate (y-axis).- Returns:
- an array of double values.
-
getFxPoint
double getFxPoint(int index) Point f(x) at index.- Parameters:
index- the index of the point to return.- Returns:
- a double.
-
getX
double[] getX()Returns copy of the array of points x (x-axis).- Returns:
- an array of double values.
-
halfWidthEnds
boolean halfWidthEnds()Does this data set have half-width start/end bins. Intended for OST, where the first and last bins are half the regular width.- Returns:
- a boolean.
-
lowerBound
double lowerBound()Lower bound of the points along x.- Returns:
- a double.
-
numPoints
int numPoints()Number of points along x.- Returns:
- the number of points.
-
upperBound
double upperBound()Upper bound of the points along x.- Returns:
- a double.
-