edu.umd.cfar.lamp.viper.gui.data
Class HelpInterpolate

java.lang.Object
  extended byedu.umd.cfar.lamp.viper.gui.data.HelpInterpolate
All Implemented Interfaces:
Interpolator
Direct Known Subclasses:
BboxInterpolator, CircleInterpolator, DvalueInterpolator, EllipseInterpolator, FvalueInterpolator, OboxInterpolator, OmegaInterpolator, PointInterpolator, PolygonInterpolator

public abstract class HelpInterpolate
extends java.lang.Object
implements Interpolator

Author:
davidm

Constructor Summary
HelpInterpolate()
           
 
Method Summary
abstract  ArbitraryIndexList helpInterpolate(java.lang.Object a, java.lang.Object b, long between)
          Return the between values between a and b.
 ArbitraryIndexList interpolate(java.lang.Object[] Z, long[] length, java.lang.String method)
          Interpolates between the given objects, returning a Z.length + sum(length) length array of objects.
static double oneNth(double a, double b, double where, double n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelpInterpolate

public HelpInterpolate()
Method Detail

interpolate

public ArbitraryIndexList interpolate(java.lang.Object[] Z,
                                      long[] length,
                                      java.lang.String method)
                               throws InterpolationException
Description copied from interface: Interpolator
Interpolates between the given objects, returning a Z.length + sum(length) length array of objects.

Specified by:
interpolate in interface Interpolator
Parameters:
Z - the values to interpolate between
length - the length of the interpolations, such that length.length == Z.length-1
method - the interpolation method
Returns:
the interpolated values
Throws:
InterpolationException

helpInterpolate

public abstract ArbitraryIndexList helpInterpolate(java.lang.Object a,
                                                   java.lang.Object b,
                                                   long between)
                                            throws InterpolationException
Return the between values between a and b.

Parameters:
a -
b -
between -
Returns:
Throws:
InterpolationException

oneNth

public static double oneNth(double a,
                            double b,
                            double where,
                            double n)