Storage
This function models a non-linear transfer characteristic by linear approximation.
The output corresponding to an input between two transfer characteristic points XC(J), YC(J) and XC(J+1), YC(J+1) is determined by linear interpolation between the points. That is,
![]()
The output corresponding to an input that is either less than XC(1) or greater than XC(N), is determined by linear extrapolation, based on the nearest two data points. The XC data points must be increasing from XC(1) to XC(N).
|
Author(s): |
A. M. Gole |
University of Manitoba, 1989 |
REAL FUNCTION APLIN(N,XC,YC,X)
|
Argument |
Type |
Dimension |
Description |
|
|
|
|
|
|
N |
INTEGER |
1 |
Number of data points in non-linear transfer characteristic. This integer is used to define the dimension of XC and YC below. |
|
XC |
REAL |
2 ... N |
X coordinates of data points (must be increasing from XC(1) to XC(N) ). |
|
YC |
REAL |
2 ... N |
Y coordinates of data points |
|
X |
REAL |
1 |
Input signal |