Elysia Tools Docs
ZH
语言
ZHESPTRUFRDEEN
返回主站
浏览工具

Data Processing

数据插值器

高级数据插值工具,使用多种数学方法填补缺失值和生成数据点。完美适用于时间序列分析、数据补全、信号处理和科学计算。 功能特点: - 多种插值方法(线性、多项式、样条、三次) - 支持日期/时间的时间序列插值 - 前向填充和后向填充选项 - 最近邻插值 - 自定义插值参数 - 缺失值检测和报告 - 数据点生成和加密 - 同时支持多列处理 - 交互式插值预览 常见用途: - 传感器数据填补 - 金融数据补全 - 科学实验数据处理 - 时间序列预测准备 - 图像和信号处理 - 统计数据插补

text· 文本结果打开工具

快速开始

用三种语言从你的代码中调用此工具。

cURL
curl -X POST 'https://api.elysiatools.com/zh/api/tools/data-interpolator' \
  -H 'Content-Type: application/json' \
  -d '{"inputData":"date,temperature,humidity,pressure\n2024-01-01,25.5,60,1013.25\n2024-01-02,,65,1015.32\n2024-01-03,26.1,,1012.78\n2024-01-04,24.8,62,\n2024-01-05,25.2,61,1014.56","targetColumns":"温度, 湿度, 气压\n\n留空则自动检测数值列","indexColumn":"日期或时间","interpolationMethod":"linear","polynomialDegree":2,"extrapolationMethod":"none","maxGapSize":5,"fillDirection":"both","customValue":"0","preserveOriginal":false,"markInterpolated":true,"generateReport":false,"dateFormat":"YYYY-MM-DD","decimalPlaces":2}'

© 2026 Elysia Tools. 开发者文档。

返回主站浏览工具

API 参考

以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。

请求端点

HTTP
POST https://api.elysiatools.com/zh/api/tools/data-interpolator

请求参数

参数名类型必填说明
inputDatatextarea是—
targetColumnstextarea否—
indexColumntext否Column to use as index for ordered interpolation (e.g., date, time, sequence)
interpolationMethodselect否—
polynomialDegreenumber否Degree for polynomial interpolation (used when method is polynomial)
extrapolationMethodselect否—
maxGapSizenumber否Maximum number of consecutive missing values to interpolate
fillDirectionselect否—
customValuetext否Value to use when interpolation method is "custom"
preserveOriginalcheckbox否Keep original columns with "_original" suffix
markInterpolatedcheckbox否Add columns to flag interpolated values
generateReportcheckbox否Include detailed interpolation analysis report
dateFormattext否Format for date output (e.g., YYYY-MM-DD, MM/DD/YYYY)
decimalPlacesnumber否Number of decimal places for numeric values

响应格式

文本结果

JSON
{
  "result": "Processed text content",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}

MCP 集成

将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。

服务配置

将以下内容加入你的 MCP 客户端配置:

mcp.json
{
  "mcpServers": {
    "elysiatools-data-interpolator": {
      "name": "data-interpolator",
      "description": "高级数据插值工具,使用多种数学方法填补缺失值和生成数据点。完美适用于时间序列分析、数据补全、信号处理和科学计算。\n\n功能特点:\n- 多种插值方法(线性、多项式、样条、三次)\n- 支持日期/时间的时间序列插值\n- 前向填充和后向填充选项\n- 最近邻插值\n- 自定义插值参数\n- 缺失值检测和报告\n- 数据点生成和加密\n- 同时支持多列处理\n- 交互式插值预览\n\n常见用途:\n- 传感器数据填补\n- 金融数据补全\n- 科学实验数据处理\n- 时间序列预测准备\n- 图像和信号处理\n- 统计数据插补",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=data-interpolator",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

列出可用工具

连接到 SSE 端点后,列出已开放的工具:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

调用此工具

通过工具 id 调用,参数由其参数表构建:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "data-interpolator",
    "arguments": {
  "inputData": "date,temperature,humidity,pressure\n2024-01-01,25.5,60,1013.25\n2024-01-02,,65,1015.32\n2024-01-03,26.1,,1012.78\n2024-01-04,24.8,62,\n2024-01-05,25.2,61,1014.56",
  "targetColumns": "温度, 湿度, 气压\n\n留空则自动检测数值列",
  "indexColumn": "日期或时间",
  "interpolationMethod": "linear",
  "polynomialDegree": 2,
  "extrapolationMethod": "none",
  "maxGapSize": 5,
  "fillDirection": "both",
  "customValue": "0",
  "preserveOriginal": false,
  "markInterpolated": true,
  "generateReport": false,
  "dateFormat": "YYYY-MM-DD",
  "decimalPlaces": 2
}
  }
}
可用逗号分隔的 toolId 在一个会话中串联多个工具,例如 /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp(最多 20 个)。

有问题或反馈?请联系 [email protected]

浏览工具
打开工具