JMSLTM Numerical Library 4.0

com.imsl.chart
Class ChartSpline

java.lang.Object
  extended bycom.imsl.chart.ChartSpline
All Implemented Interfaces:
ChartFunction

public class ChartSpline
extends Object
implements ChartFunction

Wrap a spline into a ChartFunction to be plotted.

See Also:
Chart Programmer's Guide: Function Plot

Constructor Summary
ChartSpline(Spline spline)
          Creates a ChartSpline from a Spline.
ChartSpline(Spline spline, int ideriv)
          Creates a ChartSpline from the derivative of a Spline.
 
Method Summary
 double f(double x)
          Function to be charted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartSpline

public ChartSpline(Spline spline)
Creates a ChartSpline from a Spline.

Parameters:
spline - The Spline to be plotted.

ChartSpline

public ChartSpline(Spline spline,
                   int ideriv)
Creates a ChartSpline from the derivative of a Spline.

Parameters:
spline - The Spline to be plotted.
ideriv - The derivative to be plotted. If zero, the function value is plotted. If one, the first derivative is plotted, etc.
Method Detail

f

public double f(double x)
Function to be charted.

Specified by:
f in interface ChartFunction

JMSLTM Numerical Library 4.0

Copyright 1970-2006 Visual Numerics, Inc.
Built June 1 2006.