Calculators
Geometric / harmonic / RMS means API
Compute the arithmetic, geometric (exp of mean log), harmonic (n/Σ(1/x)), and root-mean-square means of positive data, illustrating the AM ≥ GM ≥ HM inequality. Auditable: all four means returned. Answers 'geometric mean of these growth rates','harmonic mean','RMS of these values'.
Price$0.01per request
MethodPOST
Route/v1/calc/stat-special-means
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
calcstatisticsgeometric-meanharmonic-meanrmsaveragegrowth-ratemean
API URL
Integration docshttps://x402.hexl.dev/v1/calc/stat-special-meansExample request
{
"data": [
1,
2,
4
]
}Example response
{
"arithmeticMean": 2.333333,
"geometricMean": 2,
"harmonicMean": 1.714286,
"rootMeanSquare": 2.645751,
"n": 3,
"rating": "AM ≥ GM ≥ HM",
"interpretation": "AM=2.3333 ≥ GM=2 ≥ HM=1.7143 (AM-GM-HM inequality)."
}Input schema
{
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "array",
"items": {
"type": "number"
},
"description": "positive values (>0)",
"examples": [
[
1,
2,
4
]
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}