variance
Compute population or sample variance from an array of numbers using a numerically stable algorithm. Accepts sample variance option with n-1 correction.
Instructions
Calculates population or sample variance with a numerically stable algorithm
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": {
"numbers": "<numbers>"
},
"name": "variance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sample | No | Set true for sample variance (n-1); defaults to population variance (n) | |
| numbers | Yes |