![]() |
| サイトマップ | |
|
関数 interpolate
は、x range と y range で定義される一連の XY のペアに対して線形補間を実行します。x range の最小値から最大値の値で補間した y 値の範囲を返します。
interpolate
(x range, y range, range)
引数 x range は、厳密に昇順もしくは降順に指定する必要があります。
引数 range には、1つの範囲 ({} で指定) 、もしくは、ワークシートの1列を指定します。引数 x range, y range に欠損値や文字列を含めることはできません。範囲内にある文字列は、欠損値に置き換えられます。
外挿はできません。引数 range に x range の最小値より小さい値や、x range の最大値より大きい値を指定すると 欠損値の記号が返されます。
x = {0,1,2}
、y = {0,1,4}
、range = data(0,2,.5)
(この data
演算は、0 から 2 まで 0.5 づつ増加する数値配列を返します) の場合、col(1) = interpolate(x,y,range)
は、列1に範囲 {0.0,0.5,1.0,2.5,4.0}
を配置します。
The interpolate function performs linear interpolation on a set of X,Y pairs defined by an x range and a y range. The function returns a range of interpolated y values from a range of values between the minimum and maximum of the x range.
interpolate(x range,y range,range)
Values in the x range argument must be strictly increasing or strictly decreasing.
The range argument must be a single range (indicated with the {} brackets) or a worksheet column. Missing values and text strings are not allowed in the x range and y range. Text strings in range are replaced by missing values.
Extrapolation is not possible; missing value symbols are returned for range argument values less than the lowest x range value or greater than the highest x range value.
For x = {0,1,2}, y = {0,1,4}, and range = data(0,2,.5) (this data operation returns numbers from 0 to 2 at increments of 0.5), the operation col(1) = interpolate(x,y,range) places the range {0.0,0.5,1.0,2.5,4.0} into column 1.
If range had included values outside the range for x, missing values would have been returned for those out-of-range values.