Class ErrorHelpers

java.lang.Object
org.dawnsci.plotting.jreality.util.ErrorHelpers

public class ErrorHelpers extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double[]
    constantPoints(double value, int size)
     
    static de.jreality.scene.SceneGraphComponent
    createErrorNode(double[] xPoints, double[] yPoints, double[] zPoints, double[] errorPoints, double errorBarWidth, double[] errorBarDirection, double[] errorBarWidthDirection)
     
    static double[]
    extractAndScale(org.eclipse.january.dataset.IDataset dataset, double graphmin, double worldmax, double graphmax)
     
    static double[]
    extractAndScaleError(org.eclipse.january.dataset.IDataset dataset, double graphmin, double worldmax, double graphmax)
     
    static void
    updateErrorNode(de.jreality.scene.SceneGraphComponent sgc, double[] xPoints, double[] yPoints, double[] zPoints, double[] errorPoints, double errorBarWidth, double[] errorBarDirection, double[] errorBarWidthDirection)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ErrorHelpers

      public ErrorHelpers()
  • Method Details

    • createErrorNode

      public static de.jreality.scene.SceneGraphComponent createErrorNode(double[] xPoints, double[] yPoints, double[] zPoints, double[] errorPoints, double errorBarWidth, double[] errorBarDirection, double[] errorBarWidthDirection)
      Parameters:
      xPoints - an array(n) of all the x points to be dealt with
      yPoints - an array(n) of all the y points to be dealt with
      zPoints - an array(n) of all the z points to be dealt with
      errorPoints - an array(n) of all the error values for the points
      errorBarWidth - the width of all the error bars
      errorBarDirection - the vector(3) describing a unit vector of the direction of the error bar
      errorBarWidthDirection - the vector(3) describing a unit vector of the direction of the error bar top and bottom
      Returns:
      the created Scene graph component for the appropriate error part
    • updateErrorNode

      public static void updateErrorNode(de.jreality.scene.SceneGraphComponent sgc, double[] xPoints, double[] yPoints, double[] zPoints, double[] errorPoints, double errorBarWidth, double[] errorBarDirection, double[] errorBarWidthDirection)
    • extractAndScale

      public static double[] extractAndScale(org.eclipse.january.dataset.IDataset dataset, double graphmin, double worldmax, double graphmax)
    • extractAndScaleError

      public static double[] extractAndScaleError(org.eclipse.january.dataset.IDataset dataset, double graphmin, double worldmax, double graphmax)
    • constantPoints

      public static double[] constantPoints(double value, int size)