Skip to content

A statistics / data science library for Deno

Notifications You must be signed in to change notification settings

dunosaurs/stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stats

Deno library for statistics

import { mean, mode, median, linearRegression } from "https://deno.land/x/stats/mod.ts";

console.log(mean([1, 2, 3, 4])) // 2.5
console.log(mode([1, 2, 3, 4, 4, 4, 3, 9, 5])) // 4
console.log(median([1, 2, 3, 4, 5])) // 3

console.log(linearRegression([1, 2, 3], [1, 2, 3])) // { slope: 1, intercept: 0, r2: 1 }

About

A statistics / data science library for Deno

Resources

Stars

Watchers

Forks

Packages

No packages published