The setValues() method specifies the reference values as a double array. setIndexes() specifies the indexes of those values as an int array. These two arrays must have the same length, and the indexes must be increasing and non-negative; otherwise an exception will be thrown. The values are periodic if a positive period is set by setPeriod(). In this case, the period must be greater than the largest index, and values within the index range 0 to (period-1) are repeated indefinitely. If the period is zero, the values are not periodic, and the values outside the range of the indexes are considered to be 0.0. The interpolation order is set by setOrder().
The default reference values are {1.0, 0.0} and the indexes are {0, 1}. The default period is 2 and the order is 0.
@author Sarah Packman, Yuhong Xiong @version $Id: Interpolation.java,v 1.34 2006/02/07 00:46:38 cxh Exp $ @since Ptolemy II 0.4 @Pt.ProposedRating Yellow (yuhong) @Pt.AcceptedRating red (cxh)
|
|