correlation
Compute Pearson or Spearman correlation coefficient between two numeric samples to measure their linear or monotonic relationship.
Instructions
计算两个样本之间的相关系数。
参数: x: 第一个样本。 y: 第二个样本(长度与 x 相同)。 method: 'pearson' 或 'spearman'。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"x": "<x>",
"y": "<y>"
},
"name": "correlation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| method | No | pearson |