axiom
Version:
Axiom AI SDK provides - an API to wrap your AI calls with observability instrumentation. - offline evals - online evals
23 lines (13 loc) • 453 B
Markdown
[**axiom v0.51.1**](../../../README.md)
***
[axiom](../../../README.md) / [scorers/aggregations](../README.md) / Median
# Function: Median()
> **Median**(): [`Aggregation`](../type-aliases/Aggregation.md)\<`"median"`\>
Computes the median of all trial scores.
## Returns
[`Aggregation`](../type-aliases/Aggregation.md)\<`"median"`\>
## Example
```typescript
Scorer('latency', fn, { aggregation: Median() })
// scores [0.3, 0.9, 0.5] => 0.5
```