Skip navigation links

Package uk.ac.starlink.diva.interp

Provides a set of classes for creating objects that interpolate between a list of positions in various (useful) ways.

See: Description

Package uk.ac.starlink.diva.interp Description

Provides a set of classes for creating objects that interpolate between a list of positions in various (useful) ways.

Interpolators

All interpolators are concrete sub-classes of Interpolator. To use these either supply arrays of positions and values to the appropriate constructor, or use the Interpolator.setCoords(double[], double[], boolean) method. The interpolated values can then be queried using the Interpolator.interpolate(double) method, supplying the position the value is required for.

Interpolators can be used together with the InterpolatedCurve2D class to display themselves as Java2D graphics objects.

Skip navigation links

Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.