JMSLTM Numerical Library 6.1

com.imsl.chart
Class ChartSpline

java.lang.Object
  extended by com.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 6.1

Copyright © 1970-2010 Visual Numerics, Inc.
Built July 30 2010.