psambit9791 / jdsp

A Java Library for Digital Signal Processing
https://jdsp.dev
MIT License
247 stars 43 forks source link

Power Spectral Density Capability #67

Closed LobsterMan123 closed 10 months ago

LobsterMan123 commented 1 year ago

Hello,

Would you please tell me if it would be possible for JDSP to have a new feature to calculate the power spectral density of a random signal (I've been told that it is inappropriate to do FFT on random signals)? If it is a trivial thing that the user can do by just writing some loop and doing some simple math on the FFT results instead, please let me know that this is the case as I'd like to be able to implement power spectral density capabilities in my workflows to handle a more diverse set of signals. Thanks.

LM

psambit9791 commented 10 months ago

@LobsterMan123

Sorry for the late response. I think it is fairly simple to compute the spectral density from the FFT of a signal. This Matlab link provides a good explanation of how this can be done.