np_corrcoef
Compute Pearson product-moment correlation coefficients from an array of variables and observations, with option to specify rows as variables.
Instructions
Return Pearson product-moment correlation coefficients.
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": {
"array": "<array>"
},
"name": "np_corrcoef"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| array | Yes | A 1-D or 2-D array containing multiple variables and observations. | |
| rowvar | No | If True, each row represents a variable (default: True). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |