fft.ts 445 B

1234567891011121314
  1. import { fft } from "../../src/Util/fft";
  2. describe("Fast Fourier Transform tests:", () => {
  3. describe("test1?", () => {
  4. let array: number[] = [0.5, 0.5, 0.5];
  5. let res: { imag: Float64Array; real: Float64Array; } = fft.toRealImag(array);
  6. it("will succeed", (done: MochaDone) => {
  7. console.log(res.imag[0], res.real[0]);
  8. console.log(JSON.stringify(res));
  9. done();
  10. });
  11. });
  12. });