squiggle/packages/squiggle-lang/__tests__/Bandwidth_test.res
Quinn Dougherty 4f95c019eb yarn format
2022-04-12 20:22:19 -04:00

14 lines
330 B
Plaintext

open Jest
open Expect
describe("Bandwidth", () => {
test("nrd0()", () => {
let data = [1., 4., 3., 2.]
expect(SampleSetDist_Bandwidth.nrd0(data))->toEqual(0.7625801874014622)
})
test("nrd()", () => {
let data = [1., 4., 3., 2.]
expect(SampleSetDist_Bandwidth.nrd(data))->toEqual(0.8981499984950554)
})
})