AUTOSAR_SWS_IFLLibrary 中文翻译

文档编号:083 | 状态:Final | 发布于:AUTOSAR CP Release 4.4.0
所属标准:AUTOSAR Classic Platform | 文档责任方:AUTOSAR

本翻译覆盖原文档 1-29 页正文(约 640 KB)。
原文为软件规范(SWS),定义 IFL 库(Interpolation Library)——AUTOSAR 标准插值函数库,提供 1D/2D 查表插值与曲线插值。


1 引言

IFL 库(Interpolation Library)提供 AUTOSAR 标准插值函数。库函数不维护状态,为纯函数。支持:

2 缩略语

IFL / 1D / 2D / Cur(Curve)/ Map / Interpolation / Extrapolation / Breakpoint / Axis / GetVersionInfo / f32

3 相关文档

4 需求可追溯性

SWS_Ifl_NNNNN 规范项 ID 约 30+ 条。

5 功能规范

IFL 函数按插值维度分类:

6 API 规范

6.1 类型

类型描述
Ifl_Float32浮点 32 位(float)
Ifl_IndexType索引类型(uint16/32)
Ifl_SizeType大小类型(uint16/32)

6.2 函数定义

API签名功能
Ifl_DPSearch_f32boolean Ifl_DPSearch_f32(float X_Value, const float* X_Axis, Ifl_IndexType X_Size, float Y_Value, const float* Y_Axis, Ifl_IndexType Y_Size, Ifl_IndexType* X_Index, Ifl_IndexType* Y_Index)2D 双线性网格单元搜索
Ifl_IpoCur_f32float Ifl_IpoCur_f32(const float* X_Axis, const float* Y_Axis, Ifl_IndexType Size, float X_Value)1D 曲线插值
Ifl_IpoMap_f32float Ifl_IpoMap_f32(const float* X_Axis, const float* Y_Axis, Ifl_IndexType Size, float X_Value)1D 映射
Ifl_Interpolate_f32float Ifl_Interpolate_f32(const float* X_Axis, const float* Y_Axis, Ifl_IndexType Size, float X_Value, Ifl_IndexType Index)1D 单点插值(已知索引)
Ifl_IntIpoCur_f32_f32float Ifl_IntIpoCur_f32_f32(const float* X_Axis, const float* Y_Axis, const float* Z_Grid, Ifl_IndexType X_Size, Ifl_IndexType Y_Size, float X_Value, float Y_Value)2D 曲线插值
Ifl_IntIpoMap_f32f32_f32float Ifl_IntIpoMap_f32f32_f32(const float* X_Axis, const float* Y_Axis, const float* Z_Grid, Ifl_IndexType X_Size, Ifl_IndexType Y_Size, float X_Value, float Y_Value)2D 映射
Ifl_GetVersionInfovoid Ifl_GetVersionInfo(Std_VersionInfoType* VersionInfoPtr)获取版本信息

共 7 个 API 函数。


校对记录

校对轮次:L1 自动校对(2026-06-13)