mean
Calculates the arithmetic average of a list of numerical values and returns the result for statistical analysis.
Instructions
Computes the mean of a list of numbers.
Args: data: A list of numerical values.
Returns: On success: {"result": } On error: {"error": }
Examples: >>> mean([1, 2, 3, 4]) {'result': 2.5} >>> mean([10, 20, 30]) {'result': 20.0}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |