{'fraction_non_alphanumeric': 0.03518518518518519, 'fraction_numerical': 0.000925925925925926, 'mean_word_length': 5.631901840490798, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Frequency-domain Steiglitz-McBride method for least-squares IIR filter design, ARMA modeling, and periodogram smoothing

The classic Steiglitz-McBride (mode-1) time-domain algorithm for least-squares approximation of desired impulse responses for IIR digital filters or ARMA signal models is reformulated in the frequency domain to allow the direct least-squares approximation of either complex-valued or magnitude-only frequency responses, as well as power-density spectra, including periodograms. The resulting (stable) designs in the complex-valued case with both magnitude- and phase-response specifications can be either causal or noncausal, as appropriate to the phase, while the magnitude-only designs can always be made causal and minimum-phase. The periodogram models provide effective spectral smoothing without the need for averaging of data blocks, although averaging can be used, if desired, to reduce the computation. The filter coefficients can be either real- or complex-valued, corresponding to conjugate-symmetric or asymmetric frequency responses, respectively.