org.onebusaway.utility
Interface InterpolationStrategy<KEY extends Number,VALUE>


public interface InterpolationStrategy<KEY extends Number,VALUE>

Defines an interpolation strategy for key-value pairs of arbitrary type. For use in InterpolationLibrary.interpolate(InterpolationStrategy, EOutOfRangeStrategy, java.util.SortedMap, Number) .

Author:
bdferris
See Also:
InterpolationLibrary.interpolate(InterpolationStrategy, EOutOfRangeStrategy, java.util.SortedMap, Number)

Method Summary
 VALUE interpolate(KEY prevKey, VALUE prevValue, KEY nextKey, VALUE nextValue, double ratio)
           
 

Method Detail

interpolate

VALUE interpolate(KEY prevKey,
                  VALUE prevValue,
                  KEY nextKey,
                  VALUE nextValue,
                  double ratio)


Copyright © 2011 OneBusAway. All Rights Reserved.