Class UnwrappedGeneratorGraphData

java.lang.Object
xal.extension.widgets.plot.BasicGraphData
xal.extension.widgets.plot.UnwrappedGeneratorGraphData

public class UnwrappedGeneratorGraphData extends BasicGraphData
  • Field Details

  • Constructor Details

    • UnwrappedGeneratorGraphData

      public UnwrappedGeneratorGraphData()
      data set constructor
    • UnwrappedGeneratorGraphData

      public UnwrappedGeneratorGraphData(int nPoint, int nInterpPoints)
      data set constructor with defined initial capacity for number of (x,y) points and interpolated points
  • Method Details

    • setExtUnwrappedContainer

      public void setExtUnwrappedContainer(BasicGraphData extUnwrappedData)
      set the external data container for unwrapped data
    • addPoint

      public void addPoint(double x, double y, double err)
      add (x,y, error of y) point to the data set and an unwrapped data point to the external container
      Overrides:
      addPoint in class BasicGraphData
      Parameters:
      x - The feature to be added to the Point attribute
      y - The feature to be added to the Point attribute
      err - The feature to be added to the Point attribute
    • unwrap

      protected double unwrap(double y, double yIn)
      this method finds +-2*PI to produce the nearest points
    • removeAllPoints

      public void removeAllPoints()
      remove all points from the data set
      Overrides:
      removeAllPoints in class BasicGraphData
    • main

      public static void main(String[] args)