Class ErrorHelpers
java.lang.Object
org.dawnsci.plotting.jreality.util.ErrorHelpers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double[]constantPoints(double value, int size) static de.jreality.scene.SceneGraphComponentcreateErrorNode(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 voidupdateErrorNode(de.jreality.scene.SceneGraphComponent sgc, double[] xPoints, double[] yPoints, double[] zPoints, double[] errorPoints, double errorBarWidth, double[] errorBarDirection, double[] errorBarWidthDirection)
-
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 withyPoints- an array(n) of all the y points to be dealt withzPoints- an array(n) of all the z points to be dealt witherrorPoints- an array(n) of all the error values for the pointserrorBarWidth- the width of all the error barserrorBarDirection- the vector(3) describing a unit vector of the direction of the error barerrorBarWidthDirection- 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)
-