psambit9791 / jdsp

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

fix Generate samples and frequency #46

Closed arnoliudaxia closed 1 year ago

arnoliudaxia commented 1 year ago

The Generate use linspace but give the argument samples the samplingFreq. The samples should be (stop-start)*samplingFreq instead.

psambit9791 commented 1 year ago

This is a required fix, but this can currently cause other functions to break which I am currently using for developing speech processing functions. Could you please add this as a bug under issues?