Curve Using Prelookup
Use previously calculated index and fraction values to accelerate approximation of one-dimensional function
Libraries:
AUTOSAR Blockset /
Classic Platform /
Library Routines /
Interpolation
Description
The Curve Using Prelookup block is intended for use with the Prelookup block. This block enables a prelookup result to drive multiple interpolation results.
The Prelookup block computes the index and interval fraction that specify
how its input value u
relates to the breakpoint data set and feeds the
resulting index and fraction values into the Curve Using Prelookup block to
interpolate a one-dimensional table.
The Prelookup and Curve Using Prelookup blocks have distributed algorithms that, when used together, perform the same algorithm operation as the Curve block. By using the Prelookup and Curve Using Prelookup blocks together you have greater flexibility and more efficient simulation and code generation than when just using the Curve block.
If you select the AUTOSAR 4.x code replacement library (CRL) for your AUTOSAR model, code generated from this block is replaced with the AUTOSAR library routine that you configure in the block parameters dialog box.