UNPKG

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

21 lines (17 loc) 815 B
import { describe, it } from 'node:test'; import { getData } from './get-data.js'; import { testDescriptive, testCorrelation, testCompareMeans, testReliability, testRegression, testCDF, testClustering } from './tests/index.js' const files = getData() describe('ALS Statistics vs Golden JSON (Python/Numpy/SciPy)', () => { for (const g of files) { describe(`Golden: (kind=${g?.meta?.kind}, rows=${g?.meta?.rows})`, () => { testDescriptive(g) // --- Descriptive stats --- testCorrelation(g) // --- Correlate --- testCompareMeans(g) // --- Compare Means --- testReliability(g) // --- Reliability (Cronbach) --- testRegression(g) // --- Regression (Linear) --- testCDF(g) // --- CDF --- testClustering(g) }); } });