Spectral Sampling
WaveSpec.SpectralSampling.approx_inverse_cdf — Method
approx_inverse_cdf(p_target, cdf, f_lookup)Uses binary search and linear interpolation to find the frequency f corresponding to a cumulative probability p_target.
WaveSpec.SpectralSampling.generate_grid — Method
generate_grid(strategy, domain, spectrum, fmin, fmax, nf)Distributes frequencies such that the ENERGY (variance) is spaced according to the sampling strategy (e.g., Equal Energy for UniformSampling).
WaveSpec.SpectralSampling.generate_grid — Method
generate_grid(strategy, domain, spectrum, fmin, fmax, nf)Distributes frequencies values according to the sampling strategy (UniformSampling, LogSampling...).