https://github.com/headlessnode/stdlib-waves
https://github.com/headlessnode/stdlib-waves
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/headlessnode/stdlib-waves
- Owner: headlessNode
- License: mit
- Created: 2025-03-16T08:57:22.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-03-25T21:32:56.000Z (8 months ago)
- Last Synced: 2025-03-25T22:27:03.333Z (8 months ago)
- Language: JavaScript
- Size: 165 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# stdlib-waves
This project showcases the use of `@stdlib/plot` API to visualize a sine wave generated by `@stdlib/simulate-iter-sinewave` function. Users can modify the key parameters to see how they affect the waveform.
## Parameters
The waveform is generated using the following parameters:
- Amplitude: Peak value of the sine wave.
- Period: Number of iterations before a sine wave repeats.
- Iterations: Number of iterations
- Sampling Rate: Number of samples per second (Hz)
The wave duration and frequency is calculate using the following formulas:
- Duration (in seconds) = iterations / sampling rate
- Frequency (in Hz) = sampling rate / period
## License
MIT © headlessNode