Utilities for computing & aggregating value metrics (mean, median, min/max, sd), incl. support for circular domains
npm install @thi.ng/metrics
!npm downloads

> [!NOTE]
> This is one of 214 standalone projects, maintained as part
> of the @thi.ng/umbrella monorepo
> and anti-framework.
>
> 🚀 Please help me to work full-time on these projects by sponsoring me on
> GitHub. Thank you! ❤️
- About
- Status
- Installation
- Dependencies
- API
- Authors
- License
Utilities for computing & aggregating value metrics (mean, median, min/max, sd), incl. support for circular domains.
STABLE - used in production
Search or submit any issues for this package
``bash`
yarn add @thi.ng/metrics
ESM import:
`ts`
import * as met from "@thi.ng/metrics";
Browser ESM import:
`html`
For Node.js REPL:
`js`
const met = await import("@thi.ng/metrics");
Package sizes (brotli'd, pre-treeshake): ESM: 698 bytes
- @thi.ng/api
- @thi.ng/math
- @thi.ng/vectors
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
TODO
If this project contributes to an academic publication, please cite it as:
`bibtex``
@misc{thing-metrics,
title = "@thi.ng/metrics",
author = "Karsten Schmidt",
note = "https://thi.ng/metrics",
year = 2025
}
© 2025 - 2026 Karsten Schmidt // Apache License 2.0