Moves code into Science module

This commit is contained in:
Roman Galochkin 2020-04-03 14:08:32 +03:00
parent 1fe9524937
commit df075b4d68

View File

@ -2,11 +2,11 @@ open Jest;
open Expect; open Expect;
describe("Bandwidth", () => { describe("Bandwidth", () => {
test("nrd0 1", () => { test("nrd0()", () => {
let data = [|1., 4., 3., 2.|]; let data = [|1., 4., 3., 2.|];
expect(Science.nrd0(data)) |> toEqual(0.7635139420854616); expect(Science.nrd0(data)) |> toEqual(0.7635139420854616);
}); });
test("nrd0 2", () => { test("nrd()", () => {
let data = [|1., 4., 3., 2.|]; let data = [|1., 4., 3., 2.|];
expect(Science.nrd(data)) |> toEqual(0.899249754011766); expect(Science.nrd(data)) |> toEqual(0.899249754011766);
}); });