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'。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| method | No | pearson |