Package xal.extension.widgets.plot
Class CubicSplineGraphData
java.lang.Object
xal.extension.widgets.plot.BasicGraphData
xal.extension.widgets.plot.CubicSplineGraphData
-
Nested Class Summary
Nested classes/interfaces inherited from class xal.extension.widgets.plot.BasicGraphData
BasicGraphData.CompareErr, BasicGraphData.CompareX, BasicGraphData.CompareY, BasicGraphData.XYpoint
-
Field Summary
Fields inherited from class xal.extension.widgets.plot.BasicGraphData
color, drawLinesOn, drawPointsOn, errYmax, graphDataContainerV, immediateContainerUpdate, lineStroke, lineThick, lockUpObj, markShape, markShapeFilled, name, nInterpPoints, pointSize, propertyMap, xMax, xMin, xyInterpPointV, xyPointV, yMax, yMin
-
Constructor Summary
ConstructorsConstructorDescriptiondata set constructorCubicSplineGraphData
(int nPoint, int nInterpPoints) data set constructor with defined initial capacity for number of (x,y) points and interpolated points -
Method Summary
Modifier and TypeMethodDescriptionprotected void
calculates the spline coefficientsdouble
getValueDerivativeY
(double x) returns the y'-value for a certain x-value by using the spline interpolation schemadouble
getValueY
(double x) returns the y-value for a certain x-value by using the spline interpolation schemastatic void
Methods inherited from class xal.extension.widgets.plot.BasicGraphData
addPoint, addPoint, addPoint, addPoint, getCapacity, getDrawLinesOn, getDrawPointsOn, getErr, getGraphColor, getGraphDataContainer, getGraphName, getGraphPointShape, getGraphPointSize, getGraphProperty, getGraphPropertyKeys, getGraphPropertySize, getImmediateContainerUpdate, getInterpX, getInterpY, getLineThick, getLockObject, getMaxErr, getMaxX, getMaxY, getMinX, getMinY, getNumberOfGraphDataContainers, getNumbOfInterpPoints, getNumbOfPoints, getStroke, getX, getY, init, isGraphPointShapeFilled, registerInContainer, removeAllPoints, removeContainer, removePoint, setDrawLinesOn, setDrawPointsOn, setGraphColor, setGraphName, setGraphPointFillingShape, setGraphPointShape, setGraphPointSize, setGraphProperty, setImmediateContainerUpdate, setLineDashPattern, setLineStroke, setLineThick, updateContainer, updateData, updatePoint, updatePoint, updateValues, updateValues, updateValuesY, updateValuesY, updateValueY
-
Constructor Details
-
CubicSplineGraphData
public CubicSplineGraphData()data set constructor -
CubicSplineGraphData
public CubicSplineGraphData(int nPoint, int nInterpPoints) data set constructor with defined initial capacity for number of (x,y) points and interpolated points
-
-
Method Details
-
getValueY
public double getValueY(double x) returns the y-value for a certain x-value by using the spline interpolation schema- Overrides:
getValueY
in classBasicGraphData
- Parameters:
x
- Description of the Parameter- Returns:
- The valueY value
-
getValueDerivativeY
public double getValueDerivativeY(double x) returns the y'-value for a certain x-value by using the spline interpolation schema- Overrides:
getValueDerivativeY
in classBasicGraphData
- Parameters:
x
- Description of the Parameter- Returns:
- The valueDerivativeY value
-
calculateRepresentation
protected void calculateRepresentation()calculates the spline coefficients- Overrides:
calculateRepresentation
in classBasicGraphData
-
main
-