Skip to content

Input type #7

@RogerMito

Description

@RogerMito

Hello guys.

I'm tryng use the lib with an array containing vibration values (mm/s or g).
For example, I have the following input:
[10, 0.8285441, 0.69100095, 1.0226318, 0.7041154, 1.51439095] ...
But when I try to do:

let fft2 = require('fft-js').fft;
let y = fft2(signal);
console.log(y);

Nothing happens (there is no output). I guess that the library isn't working for me.
I found into README.md file the following: "The following code assumes a complex number is
an array: [real, imaginary]", that way, I'll need to get the real and imaginay parts of my original input?

Could you help me?

Thanks and congratulations by the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions