Data Processing
高级数据插值工具,使用多种数学方法填补缺失值和生成数据点。完美适用于时间序列分析、数据补全、信号处理和科学计算。 功能特点: - 多种插值方法(线性、多项式、样条、三次) - 支持日期/时间的时间序列插值 - 前向填充和后向填充选项 - 最近邻插值 - 自定义插值参数 - 缺失值检测和报告 - 数据点生成和加密 - 同时支持多列处理 - 交互式插值预览 常见用途: - 传感器数据填补 - 金融数据补全 - 科学实验数据处理 - 时间序列预测准备 - 图像和信号处理 - 统计数据插补
用三种语言从你的代码中调用此工具。
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":true,"dateFormat":"YYYY-MM-DD","decimalPlaces":2}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/api/tools/data-interpolator| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| inputData | textarea | 是 | — |
| targetColumns | textarea | 否 | — |
| indexColumn | text | 否 | Column to use as index for ordered interpolation (e.g., date, time, sequence) |
| interpolationMethod | select | 否 | — |
| polynomialDegree | number | 否 | Degree for polynomial interpolation (used when method is polynomial) |
| extrapolationMethod | select | 否 | — |
| maxGapSize | number | 否 | Maximum number of consecutive missing values to interpolate |
| fillDirection | select | 否 | — |
| customValue | text | 否 | Value to use when interpolation method is "custom" |
| preserveOriginal | checkbox | 否 | Keep original columns with "_original" suffix |
| markInterpolated | checkbox | 否 | Add columns to flag interpolated values |
| generateReport | checkbox | 否 | Include detailed interpolation analysis report |
| dateFormat | text | 否 | Format for date output (e.g., YYYY-MM-DD, MM/DD/YYYY) |
| decimalPlaces | number | 否 | Number of decimal places for numeric values |
文本结果
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"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 端点后,列出已开放的工具:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}通过工具 id 调用,参数由其参数表构建:
{
"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": true,
"dateFormat": "YYYY-MM-DD",
"decimalPlaces": 2
}
}
}有问题或反馈?请联系 [email protected]