public class MMCubicSpline extends MMAbstractSpline
m_borelSet, m_BoundaryVisibility, m_dataPoints, m_dataPointsNeedResort, m_doubleArraysNeedAdjust, m_vertices_count_in_drawable, m_xVals, m_yVals
DIRECTION_VECTOR, EDITABLE, EDITED, FINITE_NUMBER_SET_ENTRY, INDEXED_ENTRY, INTERVAL, INTERVAL_LOW_BOUND_TYPE, INTERVAL_LOW_BOUND_VALUE, INTERVAL_UP_BOUND_TYPE, INTERVAL_UP_BOUND_VALUE, MATRIX_ENTRY, NUMBER, NUMBERMATRIX, OPERATION, OPERATION_ARRAY, ORIGIN_VECTOR, RELATION, SET_ENTRY, STRING, STRING_MATRIX
DEFAULT_VERTICES_COUNT
Constructor and Description |
---|
MMCubicSpline(java.lang.Class numberClass,
double[] xVals,
double[] yVals)
Constructs a cubic spline that has its joints at the given points.
|
MMCubicSpline(MMAffine2DPoint[] points)
Constructs a cubic spline that has its joints at the given points.
|
Modifier and Type | Method and Description |
---|---|
protected void |
adjustInternalData()
Resorts the point array, constructs the double array from it and adjusts the borel domain.
|
double |
getLeftDerivative()
Returns the spline's derivatives at the left border of the domain.
|
double |
getRightDerivative()
Returns the spline's derivatives at the right border of the domain.
|
static void |
main(java.lang.String[] str) |
void |
setDerivatives(double leftDerivative,
double rightDerivative)
Sets the spline's derivatives at the left and the right border of the domain.
|
protected double |
specificEvaluate(double x,
int i)
Should return the function value for the given x and interval index.
|
protected void |
specificEvaluate(MNumber xin,
MNumber yout,
int i)
Should return the function value for the given x and interval index.
|
java.lang.String |
toString()
Returns a string representation of the samples.
|
adjustBorelDomain, evaluate, evaluate, getIntervalIndex, getIntervalIndex
adjustDoubleArrays, areBoundarysVisible, connect, evaluate, exportSamplesAsColumnMatrix, getAllIntervalCount, getBorelSet, getBorelSet, getBorelSetInComponent, getComponentsCount, getDefaultTransformType, getDefaultTransformTypeAsContainer, getDefaultTransformTypeInCanvas, getDomain, getEvaluateExpressionInComponent, getExpressionCount, getFunctionExpression, getInterval, getIntervalCount, getIntervalCountInComponent, getNumberClass, getSamplePoint, getSamplesCount, getVerticesCount, getXmax, getXmaxDouble, getXmin, getXminDouble, resortPoints, setBorelSet, setBoundarysVisible, setFromPoints, setSample, setSample, setVerticesCount
addHandler, addSpecialCaseListener, addUpdater, dependsOn, dependsOn, doAction, draw, fireSpecialCaseEvent, getActiveHandler, getAsCanvasContent, getAsContainerContent, getAsContainerContent, getCanvas, getCanvasTransformer, getDisplayProperties, getDisplayTransformerMap, getHandlerCount, getHandlers, getInteractionHelper, getLabel, getTransformType, getUpdaterCount, getWorldBoundingBox, invokeUpdaters, isAtScreenLocation, isEditable, isSelectable, isSelected, isVisible, propertyChange, removeAllHandlers, removeAllUpdaters, removeHandler, removeSpecialCaseListener, removeUpdater, render, resetActiveHandler, setBorderColor, setCanvas, setCanvasTransformer, setColor, setDisplayProperties, setEditable, setLabel, setObjectColor, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSpecialCaseListener, fireSpecialCaseEvent, getDisplayProperties, getLabel, isEditable, removeSpecialCaseListener, setDisplayProperties, setEditable, setLabel
draw, getAsContainerContent, getAsContainerContent, getDisplayTransformerMap, getTransformType, isVisible, render, setVisible
addHandler, addUpdater, dependsOn, dependsOn, doAction, getActiveHandler, getHandlerCount, getHandlers, getUpdaterCount, invokeUpdaters, isSelectable, isSelected, removeAllHandlers, removeAllUpdaters, removeHandler, removeUpdater, resetActiveHandler
getAsCanvasContent, getCanvas, getCanvasTransformer, getWorldBoundingBox, isAtScreenLocation, setCanvas, setCanvasTransformer
public MMCubicSpline(java.lang.Class numberClass, double[] xVals, double[] yVals)
public MMCubicSpline(MMAffine2DPoint[] points)
protected void adjustInternalData()
MMFunctionDefinedBySamples
adjustInternalData
in class MMFunctionDefinedBySamples
public void setDerivatives(double leftDerivative, double rightDerivative)
public double getLeftDerivative()
public double getRightDerivative()
protected double specificEvaluate(double x, int i)
MMAbstractSpline
specificEvaluate
in class MMAbstractSpline
protected void specificEvaluate(MNumber xin, MNumber yout, int i)
MMAbstractSpline
specificEvaluate
in class MMAbstractSpline
public java.lang.String toString()
MMFunctionDefinedBySamples
toString
in class MMFunctionDefinedBySamples
public static void main(java.lang.String[] str)
Further documentation and examples can be found under www.mathletfactory.de.