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 Type
    Method
    Description
    double
    Separation between points along x; should be uniform.
    double[]
    Returns copy of the array of points f(x) to integrate (y-axis).
    double
    getFxPoint(int index)
    Point f(x) at index.
    double[]
    Returns copy of the array of points x (x-axis).
    boolean
    Does this data set have half-width start/end bins.
    double
    Lower bound of the points along x.
    int
    Number of points along x.
    double
    Upper 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
      invalid reference
      double
      objects.
    • 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
      invalid reference
      double
      objects.
    • 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.