Interface SpectrumAnalysisProvider
- All Known Implementing Classes:
PrimitiveSpectrumAnalysisProvider, RealSpectrumAnalysisProvider
public interface SpectrumAnalysisProvider
Interface for spectrum analysis providers.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]computeSpectrum(double[] samples, int bands, double sensitivity) Compute the magnitude spectrum for the given time-domain samples.float[]computeSpectrum(float[] samples, int bands, float sensitivity) Compute the magnitude spectrum for the given time-domain samples.
-
Method Details
-
computeSpectrum
float[] computeSpectrum(float[] samples, int bands, float sensitivity) Compute the magnitude spectrum for the given time-domain samples.- Parameters:
samples- time-domain signal samplesbands- number of frequency bands to returnsensitivity- scaling factor (0.0 to 1.0)- Returns:
- magnitude spectrum
-
computeSpectrum
double[] computeSpectrum(double[] samples, int bands, double sensitivity) Compute the magnitude spectrum for the given time-domain samples.- Parameters:
samples- time-domain signal samplesbands- number of frequency bands to returnsensitivity- scaling factor (0.0 to 1.0)- Returns:
- magnitude spectrum
-