np_var
Compute the variance of array elements along a specified axis, with optional control over degrees of freedom.
Instructions
Compute the variance along the specified axis.
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_var"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| array | Yes | The input array. | |
| axis | No | Axis along which to compute variance (default: None, variance of all). | |
| ddof | No | Delta degrees of freedom for normalization (default: 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |