als-statistics
Version:
Modular JS statistics toolkit for Node.js and the browser: descriptive stats, correlations (Pearson/Spearman/Kendall), t-tests & ANOVA (Student/Welch), reliability (Cronbach’s alpha), regression (linear/logistic), clustering (DBSCAN/HDBSCAN), and table/co
16 lines (11 loc) • 757 B
Markdown
<title>Utils</title>
<description>General helper utilities.</description>
<keywords>utils, functions, htmltable, rows, headers, options, string, firstcolheader, fixed, round, value, number</keywords>
# Utils
General helper utilities.
## Functions
- `htmlTable(rows, headers, options?) → string` – render a simple HTML table (escapes content; supports `firstColHeader`, `fixed` decimals, transposition).
- `round(value, fixed=8) → number | string` – numeric rounding with fixed decimals.
- `range(start=0, end, step=1) → number[]` – numeric range.
- `filterKeys(keys: string[], filters: (string|number|RegExp)[]): string[]` – include names, regex filter, and `'-name'` exclusions.
- `Counter` – simple name counter with `getName(name?)`.