gov.sns.tools.plot
Class CubicSplineGraphData

java.lang.Object
  |
  +--gov.sns.tools.plot.BasicGraphData
        |
        +--gov.sns.tools.plot.CubicSplineGraphData

public class CubicSplineGraphData
extends BasicGraphData


Nested Class Summary
 
Nested classes inherited from class gov.sns.tools.plot.BasicGraphData
BasicGraphData.CompareErr, BasicGraphData.CompareX, BasicGraphData.CompareY, BasicGraphData.XYpoint
 
Field Summary
 
Fields inherited from class gov.sns.tools.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
CubicSplineGraphData()
          data set constructor
CubicSplineGraphData(int nPoint, int nInterpPoints)
          data set constructor with defined initial capacity for number of (x,y) points and interpolated points
 
Method Summary
protected  void calculateRepresentation()
          calculates the spline coefficients
 double getValueDerivativeY(double x)
          returns the y'-value for a certain x-value by using the spline interpolation schema
 double getValueY(double x)
          returns the y-value for a certain x-value by using the spline interpolation schema
static void main(java.lang.String[] args)
          this is a test method
 
Methods inherited from class gov.sns.tools.plot.BasicGraphData
addPoint, addPoint, addPoint, addPoint, getCapacity, getDrawLinesOn, getDrawPointsOn, getErr, getGraphColor, getGraphDataContainer, getGraphName, getGraphPointShape, getGraphPointSize, getGraphProperty, getGraphPropertyKeys, getGraphPropertySize, getImmediateContainerUpdate, getInterpX, getInterpY, getLineThick, 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, setLineThick, updateContainer, updateData, updatePoint, updatePoint, updateValues, updateValues, updateValuesY, updateValuesY, updateValueY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

getValueY

public double getValueY(double x)
returns the y-value for a certain x-value by using the spline interpolation schema

Overrides:
getValueY in class BasicGraphData

getValueDerivativeY

public double getValueDerivativeY(double x)
returns the y'-value for a certain x-value by using the spline interpolation schema

Overrides:
getValueDerivativeY in class BasicGraphData

calculateRepresentation

protected void calculateRepresentation()
calculates the spline coefficients

Overrides:
calculateRepresentation in class BasicGraphData

main

public static void main(java.lang.String[] args)
Description copied from class: BasicGraphData
this is a test method