- Butterworth filter order from a template
- Dominant frequencies of a signal
- SNR gain of a low-pass filter
- Response of a Chebyshev low-pass filter
- Pulse compression with a Barker 13 code
- Chebyshev type I low-pass: order and poles
- First-order digital low-pass by the bilinear transform with prewarping
- Quantization noise of an 8-bit ADC
- PRBS7 test pattern from a linear feedback shift register
- GMSK frequency pulse with BT = 0.3
- Separate two mixed sources
- Do two vibration sensors see the same source? (coherence)
Butterworth filter order from a template
A low-pass filter must keep 1 kHz within 1 dB and attenuate 4 kHz by 40 dB. The script computes the minimum Butterworth order, the -3 dB cutoff and the frequency where 40 dB is reached.
#1. Specs: passband 1 kHz at 1 dB max, stopband 4 kHz at 40 dB min; -> "[fp]" 1000; -> "[fs]" 4000; -> "[Ap]" 1; -> "[As]" 40; #2. Minimum Butterworth order; -> "[n]" (math ceil (math calc "log10((10^([As]/10)-1)/(10^([Ap]/10)-1))/(2*log10([fs]/[fp]))")); #3. -3 dB cutoff that meets the passband exactly; -> "[fc]" (math calc "[fp]/(10^([Ap]/10)-1)^(1/(2*[n]))"); #4. Frequency where the attenuation reaches 40 dB; -> "[f40]" (num solve (concat "10*log10(1+(f/" [fc] ")^(2*" [n] "))-40") "f" [fp] 100000); concat "Order " [n] ", fc = " (math round [fc] 1) " Hz, 40 dB reached at " (math round [f40] 0) " Hz, attenuation at 4 kHz = " (math round (math calc "10*log10(1+([fs]/[fc])^(2*[n]))") 1) " dB"
Order 4, fc = 1184 Hz, 40 dB reached at 3744 Hz, attenuation at 4 kHz = 42.3 dB
- Apply the designed filter to a test signal with
dsp filter - Compare with a Chebyshev template by changing the order formula
- Plot the gain curve with
num tableon 10 log10(1 + (f/fc)^2n)
Dominant frequencies of a signal
A 10 Hz signal sampled at 500 Hz is polluted by a 50 Hz mains hum. The script computes the amplitude spectrum and detects its peaks to give each frequency and amplitude.
#1. 100 samples at 500 Hz: 10 Hz tone + 50 Hz hum; -> "[x]" "["; -> "[sep]" ""; for (-> "[i]" 0) (< [i] 100) (++ "[i]") { -> "[x]" (concat [x] [sep] (math calc "sin(2*pi*10*[i]/500)+0.3*sin(2*pi*50*[i]/500)")); -> "[sep]" ","; }; -> "[x]" (concat [x] "]"); #2. One-sided amplitude spectrum; json load "rx_sig_spec" (dsp spectrum [x] 500); #3. Peaks of the amplitude above 0.1; json load "rx_sig_pk" (dsp peaks (json select "rx_sig_spec" /amplitude) "{\"height\": 0.1}"); -> "[k1]" (json select "rx_sig_pk" "/indices[0]"); -> "[k2]" (json select "rx_sig_pk" "/indices[1]"); concat "Peak 1: " (json select "rx_sig_spec" (concat "/f[" [k1] "]")) " Hz, A = " (math round (json select "rx_sig_pk" "/values[0]") 3) "; peak 2: " (json select "rx_sig_spec" (concat "/f[" [k2] "]")) " Hz, A = " (math round (json select "rx_sig_pk" "/values[1]") 3)
Peak 1: 10 Hz, A = 1; peak 2: 50 Hz, A = 0.3
- Apply a
dsp windowhann before the spectrum when the tone is not on a bin - Use
dsp welchfor a noisy signal - Check the period with
dsp autocorr
SNR gain of a low-pass filter
A 5 Hz measurement is disturbed by 60 Hz and 110 Hz interference. The script filters it with a zero-phase Butterworth low-pass and computes the SNR before and after.
#1. 200 samples at 500 Hz: 5 Hz useful signal, disturbances at 60 and 110 Hz; -> "[s]" "["; -> "[x]" "["; -> "[sep]" ""; for (-> "[i]" 0) (< [i] 200) (++ "[i]") { -> "[s]" (concat [s] [sep] (math calc "sin(2*pi*5*[i]/500)")); -> "[x]" (concat [x] [sep] (math calc "sin(2*pi*5*[i]/500)+0.5*sin(2*pi*60*[i]/500)+0.3*sin(2*pi*110*[i]/500)")); -> "[sep]" ","; }; -> "[s]" (concat [s] "]"); -> "[x]" (concat [x] "]"); #2. Zero-phase Butterworth low-pass, 15 Hz, order 4; -> "[y]" (dsp filter [x] 500 "lowpass" 15 4); #3. SNR = 10 log10 of signal power over noise power, before and after; -> "[ps]" (stat sum_sq [s]); -> "[in]" (math calc (concat "10*log10([ps]/" (stat sum_sq (vector sub [x] [s])) ")")); -> "[out]" (math calc (concat "10*log10([ps]/" (stat sum_sq (vector sub [y] [s])) ")")); concat "SNR in = " (math round [in] 1) " dB, SNR out = " (math round [out] 1) " dB, gain = " (math round (math calc "[out]-[in]") 1) " dB"
SNR in = 4.7 dB, SNR out = 19.7 dB, gain = 15 dB
- The edges of filtfilt limit the gain: ignore the first and last samples
- Try
dsp savgolordsp moving_averageand compare the SNR - Use
dsp filterbandstop for a single known interference
Response of a Chebyshev low-pass filter
A type I Chebyshev filter of order 5 with 0.5 dB ripple: the gain is 1/(1 + eps^2 T5(f/fc)^2). The script computes eps, the attenuation at twice the cutoff, the slope at the band edge (n U4(1)), and draws the gain in dB.
#1. Chebyshev type I low-pass: order 5, ripple 0.5 dB, cutoff 1 kHz; -> "[n]" 5; -> "[eps2]" (math calc "10^(0.5/10)-1"); #2. Attenuation at 2 kHz: 10 log of 1 + eps^2 T5 of 2 ^2; -> "[A2k]" (math calc "10*log10(1+[eps2]*chebyshev_t(5, 2)^2)"); #3. Slope of T5 at the band edge, dT/dx = n U4 of 1; -> "[slope]" (math calc "[n]*chebyshev_u(4, 1)"); #4. Gain in dB from 0 to 3 kHz, x = f / 1 kHz; plot function "-10*log10(1+[eps2]*chebyshev_t(5, x)^2)" "x" 0 3
The chart is shown in the Plot tab of the editor.
- Find the order needed for 40 dB at 2 fc with
num solveon n. - Compare with a Butterworth filter of the same order: 1/(1 + x^10).
Pulse compression with a Barker 13 code
A pulse radar transmits a Barker 13 code with 1 us chips. Compute the peak sidelobe ratio of the code from its autocorrelation, then find the echo in a noisy received signal with a matched filter (cross-correlation), its delay and the target range c tau / 2.
#1. Barker 13 code transmitted by a pulse radar, chip time 1 us; -> "[code]" "[1, 1, 1, 1, 1, -1, -1, 1, 1, -1, 1, -1, 1]"; #2. Compression gain: autocorrelation peak against the highest sidelobe; json load "rx_ac" (dsp correlate [code] [code]); -> "[main]" (stat max (json doc "rx_ac")); json load "rx_pk" (dsp peaks (json doc "rx_ac")); -> "[psl]" (math calc (concat "20*log10(" [main] "/" (json select "rx_pk" "/values/[1]") ")")); #3. Received echo: delayed by 9 chips, attenuated, with noise; -> "[rx]" "[0.1, -0.2, 0.05, 0.1, -0.1, 0.2, 0, -0.1, 0.1, 0.5, 0.6, 0.4, 0.5, 0.6, -0.4, -0.5, 0.6, 0.4, -0.6, 0.5, -0.4, 0.6, 0.1, -0.1, 0.05]"; #4. Matched filter by cross-correlation, lag of the maximum; json load "rx_mf" (dsp peaks (dsp correlate [rx] [code]) "{\"distance\": 30}"); -> "[lag]" (- (json select "rx_mf" "/indices/[0]") 12); -> "[range]" (math calc (concat "299792458*" [lag] "e-6/2")); concat "peak " [main] ", peak sidelobe ratio " (math round [psl] 2) " dB | echo delay " [lag] " us, matched filter output " (math round (json select "rx_mf" "/values/[0]") 2) " | target range " (math round (/ [range] 1000) 3) " km"
peak 13, peak sidelobe ratio 22.28 dB | echo delay 9 us, matched filter output 6.6 | target range 1.349 km
- Add Doppler: multiply the echo by a phase rotation and see the loss of the matched filter.
- Smooth the output with
dsp moving_averagebefore a CFAR threshold.
Chebyshev type I low-pass: order and poles
An anti-aliasing filter must keep 1 dB ripple up to 1 kHz and attenuate 40 dB at 2 kHz. The script computes the minimum Chebyshev order with the inverse hyperbolic cosine, then the normalized poles s_k = j sin(pi/2 - theta_k + j alpha) with alpha = asinh(1/eps)/n.
#1. Template: ripple 1 dB up to 1 kHz, 40 dB at 2 kHz; -> "[eps]" (math sqrt (- (math power 10 0.1) 1)); -> "[D]" (math sqrt (/ (- (math power 10 4) 1) (* [eps] [eps]))); #2. Minimum order of the Chebyshev filter; -> "[n]" (math ceil (/ (math acosh [D]) (math acosh 2))); #3. Pole parameter alpha and the poles of the upper half plane, normalized to wp = 1; -> "[alpha]" (/ (math asinh (/ 1 [eps])) [n]); -> "[poles]" ""; for (-> "[k]" 1) (<= [k] (math ceil (/ [n] 2))) (++ "[k]") { -> "[x]" (math round (math calc "pi/2-(2*[k]-1)*pi/(2*[n])") 12); -> "[s]" (complex mul "i" (complex sin (concat [x] "+" [alpha] "i"))); -> "[poles]" (concat [poles] " " (math round (complex re [s]) 4) (if (> (math abs (complex im [s])) 0.000001) {concat " +/- j" (math round (complex im [s]) 4)} {""}) ";"); }; concat "eps = " (math round [eps] 4) " | order n = " [n] " | alpha = " (math round [alpha] 4) " | poles:" [poles]
eps = 0.5088 | order n = 5 | alpha = 0.2856 | poles: -0.0895 +/- j0.9901; -0.2342 +/- j0.6119; -0.2895;
- Scale the poles by 2 pi 1000 and build the Sallen-Key sections, one per conjugate pair
- Compare the order with the Butterworth one for the same template
First-order digital low-pass by the bilinear transform with prewarping
A 1 kHz first-order low-pass is needed at fs = 8 kHz. The script prewarps the cutoff with the tangent, computes the coefficients of H(z) = b0 (1 + z^-1) / (1 + a1 z^-1) and checks on the unit circle that the gain is exactly -3 dB at 1 kHz.
#1. Cutoff 1 kHz, sampling 8 kHz: prewarped analog cutoff; -> "[fc]" 1000; -> "[fs]" 8000; -> "[K]" (math tan (/ (* (math pi) [fc]) [fs])); -> "[fa]" (/ (* 2 (* [fs] [K])) (* 2 (math pi))); #2. Coefficients of the digital filter; -> "[b0]" (/ [K] (+ 1 [K])); -> "[a1]" (/ (- [K] 1) (+ [K] 1)); #3. Frequency response at 1 kHz and 3 kHz; -> "[g1]" (complex abs (complex div (complex mul [b0] (complex add 1 (complex from_polar 1 (math calc "-2*pi*1000/8000")))) (complex add 1 (complex mul [a1] (complex from_polar 1 (math calc "-2*pi*1000/8000")))))); -> "[g3]" (complex abs (complex div (complex mul [b0] (complex add 1 (complex from_polar 1 (math calc "-2*pi*3000/8000")))) (complex add 1 (complex mul [a1] (complex from_polar 1 (math calc "-2*pi*3000/8000")))))); concat "prewarped analog cutoff " (math round [fa] 1) " Hz | b0 = b1 = " (math round [b0] 6) ", a1 = " (math round [a1] 6) " | 1 kHz: " (math round (* 20 (math log10 [g1])) 3) " dB | 3 kHz: " (math round (* 20 (math log10 [g3])) 2) " dB, analog RC: " (math round (* -10 (math log10 (+ 1 9))) 2) " dB"
prewarped analog cutoff 1054.8 Hz | b0 = b1 = 0.292893, a1 = -0.414214 | 1 kHz: -3.01 dB | 3 kHz: -15.44 dB, analog RC: -10 dB
- Filter a test signal with
dsp filterusing these b and a coefficients - Do the same for a second-order Butterworth section with the bilinear transform
Quantization noise of an 8-bit ADC
A 0.95 V sine is sampled by an 8-bit ADC with a +/-1 V range. The script quantizes 200 samples with rint, measures the variance of the quantization error, compares it with the classic LSB^2/12 model and the SQNR with 6.02 N + 1.76 dB, and shows the resolution of a double for comparison.
#1. 8-bit ADC, range +/-1 V, sine 0.95 V at a non-coherent frequency; -> "[lsb]" (/ 2 256); -> "[A]" 0.95; json load "rx_p4f_err" "[]"; #2. Quantize 200 samples and keep the errors; for (-> "[n]" 0) (< [n] 200) (++ "[n]") { -> "[x]" (* [A] (math sin (* 0.4593 [n]))); -> "[q]" (* [lsb] (math rint (/ [x] [lsb]))); json iarray "rx_p4f_err" / (- [q] [x]) NUM; }; #3. Measured noise power vs the LSB^2/12 model; -> "[pn]" (stat pvariance (json doc "rx_p4f_err")); json unload "rx_p4f_err"; -> "[sqnr]" (* 10 (math log10 (/ (/ (* [A] [A]) 2) [pn]))); concat "noise " (math round_sig [pn] 4) " V2 vs LSB2/12 = " (math round_sig (/ (* [lsb] [lsb]) 12) 4) " | SQNR = " (math round [sqnr] 2) " dB vs theory " (math round (+ (+ (* 6.02 8) 1.76) (* 20 (math log10 [A]))) 2) " dB | ENOB " (math round (/ (- [sqnr] 1.76) 6.02) 2) " bits | double ulp at 0.95: " (math ulp 0.95)
noise 0.000005521 V2 vs LSB2/12 = 0.000005086 | SQNR = 49.12 dB vs theory 49.47 dB | ENOB 7.87 bits | double ulp at 0.95: 1.1102230246251565E-16
- Add a dither of 1 LSB and look at the harmonics with
dsp spectrum - Repeat for 10, 12 and 16 bits and fit the SQNR line with
stat fit
PRBS7 test pattern from a linear feedback shift register
Serial links are tested with the PRBS7 pattern x^7 + x^6 + 1. The script runs the 7-bit LFSR with bitwise operations, checks that the period is the maximal 127 bits and that the pattern is balanced (64 ones, 63 zeros), and prints the first 24 bits.
#1. Seed 1111111, polynomial x^7 + x^6 + 1; -> "[seed]" 127; -> "[s]" [seed]; -> "[ones]" 0; -> "[period]" 0; -> "[bits]" ""; #2. 127 shifts: feedback = bit 6 XOR bit 5, then shift left and keep 7 bits; for (-> "[n]" 1) (<= [n] 127) (++ "[n]") { -> "[nb]" (math bit_and (math bit_xor (math trunc (/ [s] 64)) (math trunc (/ [s] 32))) 1); -> "[s]" (math bit_and (math bit_or (* [s] 2) [nb]) 127); -> "[ones]" (+ [ones] [nb]); -> "[bits]" (concat [bits] [nb]); if (and (== [s] [seed]) (== [period] 0)) {-> "[period]" [n];}; }; #3. Period and balance of a maximal length sequence; concat "period " [period] " bits" (if (== [period] 127) {" = 2^7 - 1, maximal"} {" not maximal"}) " | ones " [ones] ", zeros " (- 127 [ones]) " | first bits " (string left [bits] 24)
period 127 bits = 2^7 - 1, maximal | ones 64, zeros 63 | first bits 000000100000110000101000
- Map the bits to +/-1 and check the circular autocorrelation, -1 outside the peak, with
dsp correlate - Count the runs: a PRBS7 has 32 runs of length 1
GMSK frequency pulse with BT = 0.3
GSM and Bluetooth use GMSK, an MSK whose frequency pulse is shaped by a Gaussian filter. For BT = 0.3 the script computes the frequency pulse g(t) with the error function, the inter-symbol interference on the neighbour symbols and checks by summation that the phase change of one symbol is pi/2.
#1. BT = 0.3, symbol time T = 1, constant pi B sqrt of 2 over ln 2; -> "[B]" 0.3; -> "[k]" (* (* (math pi) [B]) (math sqrt (/ 2 (math log 2)))); #2. Frequency pulse at 0, T and 2T; -> "[g0]" (/ (- (math erf (* [k] 0.5)) (math erf (* [k] -0.5))) 4); -> "[g1]" (/ (- (math erf (* [k] 1.5)) (math erf (* [k] 0.5))) 4); -> "[g2]" (/ (- (math erf (* [k] 2.5)) (math erf (* [k] 1.5))) 4); #3. Area of the pulse from -3T to 3T, step T/20: the phase change is pi times the area; -> "[area]" 0; for (-> "[i]" -60) (<= [i] 60) (++ "[i]") { -> "[t]" (/ [i] 20); -> "[area]" (+ [area] (/ (- (math erf (* [k] (+ [t] 0.5))) (math erf (* [k] (- [t] 0.5)))) 80)); }; concat "g(0) = " (math round [g0] 4) " (MSK 0.5) | ISI g(T)/g(0) = " (math round (/ [g1] [g0]) 4) ", g(2T)/g(0) = " (math round (/ [g2] [g0]) 6) " | phase per symbol = " (math round (* 180 [area]) 3) " deg"
g(0) = 0.3712 (MSK 0.5) | ISI g(T)/g(0) = 0.1731, g(2T)/g(0) = 4.6E-4 | phase per symbol = 90 deg
- Plot g(t) for BT = 0.3 and 0.5 with
plot xyto see the spreading - Integrate g(t) to get the phase trajectory of a bit sequence
Separate two mixed sources
Two sensors record a mixture of a sine (a vibration) and a square wave (a relay): independent component analysis (FastICA) recovers the two sources without knowing the mixing; the kurtosis tells which component is the square wave.
#1. 200 samples of the two sensors; -> "[X]" "[[-0.5, -1.2], [0.5998, 1.2599], [0.6987, 1.3192], [0.7955, 1.3773], [0.8894, 1.4337], [0.9794, 1.4877], [1.0646, 1.5388], [1.1442, 1.5865], [1.2174, 1.6304], [1.2833, 1.67], [1.3415, 1.7049], [1.3912, 1.7347], [1.432, 1.7592], [1.4636, 1.7781], [1.4854, 1.7913], [1.4975, 1.7985], [1.4996, 1.7997], [1.4917, 1.795], [1.4738, 1.7843], [1.4463, 1.7678], [1.4093, 1.7456], [0.3632, -0.6821], [0.3085, -0.7149], [0.2457, -0.7526], [0.1755, -0.7947], [0.0985, -0.8409], [0.0155, -0.8907], [-0.0726, -0.9436], [-0.165, -0.999], [-0.2608, -1.0565], [-0.3589, -1.1153], [-0.4584, -1.1751], [-0.5584, -1.235], [-0.6577, -1.2946], [-0.7555, -1.3533], [-0.8508, -1.4105], [-0.9425, -1.4655], [-1.0298, -1.5179], [-1.1119, -1.5671], [-1.1878, -1.6127], [-1.2568, -1.6541], [-0.3183, 0.709], [-0.3716, 0.6771], [-0.4162, 0.6503], [-0.4516, 0.629], [-0.4775, 0.6135], [-0.4937, 0.6038], [-0.4999, 0.6], [-0.4962, 0.6023], [-0.4825, 0.6105], [-0.4589, 0.6246], [-0.4258, 0.6445], [-0.3835, 0.6699], [-0.3323, 0.7006], [-0.2728, 0.7363], [-0.2055, 0.7767], [-0.1313, 0.8212], [-0.0507, 0.8696], [0.0354, 0.9212], [0.1261, 0.9757], [0.2206, 1.0324], [-0.6822, -1.3093], [-0.5831, -1.2499], [-0.4832, -1.1899], [-0.3835, -1.1301], [-0.2849, -1.0709], [-0.1885, -1.0131], [-0.0952, -0.9571], [-0.0059, -0.9035], [0.0784, -0.8529], [0.157, -0.8058], [0.229, -0.7626], [0.2937, -0.7238], [0.3504, -0.6897], [0.3987, -0.6608], [0.438, -0.6372], [0.4679, -0.6192], [0.4882, -0.6071], [0.4985, -0.6009], [0.4989, -0.6006], [0.4894, -0.6064], [0.4699, -0.6181], [1.4407, 1.7644], [1.4022, 1.7413], [1.3546, 1.7128], [1.2985, 1.6791], [1.2344, 1.6406], [1.163, 1.5978], [1.0849, 1.551], [1.001, 1.5006], [0.9121, 1.4473], [0.8191, 1.3915], [0.7229, 1.3337], [0.6245, 1.2747], [0.5248, 1.2149], [0.4248, 1.1549], [0.3257, 1.0954], [0.2282, 1.0369], [0.1335, 0.9801], [0.0425, 0.9255], [-0.044, 0.8736], [-0.1251, 0.825], [-1.1999, -1.6199], [-1.2677, -1.6606], [-1.3278, -1.6967], [-1.3797, -1.7278], [-1.4228, -1.7537], [-1.4566, -1.774], [-1.4809, -1.7886], [-1.4954, -1.7973], [-1.5, -1.8], [-1.4946, -1.7967], [-1.4792, -1.7875], [-1.454, -1.7724], [-1.4193, -1.7516], [-1.3755, -1.7253], [-1.3228, -1.6937], [-1.262, -1.6572], [-1.1935, -1.6161], [-1.1181, -1.5709], [-1.0366, -1.5219], [-0.9496, -1.4698], [0.1418, 0.9851], [0.2368, 1.0421], [0.3344, 1.1006], [0.4337, 1.1602], [0.5336, 1.2202], [0.6332, 1.2799], [0.7315, 1.3389], [0.8275, 1.3965], [0.9202, 1.4521], [1.0087, 1.5052], [1.0921, 1.5552], [1.1696, 1.6017], [1.2404, 1.6442], [1.3038, 1.6823], [1.3592, 1.7155], [1.406, 1.7436], [1.4437, 1.7662], [1.472, 1.7832], [1.4906, 1.7944], [1.4993, 1.7996], [0.498, -0.6012], [0.4868, -0.6079], [0.4657, -0.6206], [0.4349, -0.6391], [0.3948, -0.6631], [0.3457, -0.6926], [0.2883, -0.727], [0.2229, -0.7663], [0.1503, -0.8098], [0.0712, -0.8573], [-0.0136, -0.9082], [-0.1033, -0.962], [-0.1969, -1.0181], [-0.2935, -1.0761], [-0.3922, -1.1353], [-0.492, -1.1952], [-0.5919, -1.2551], [-0.6909, -1.3145], [-0.7879, -1.3727], [-0.8821, -1.4292], [-0.9724, -1.4835], [-0.0581, 0.8652], [-0.1381, 0.8171], [-0.2118, 0.7729], [-0.2784, 0.733], [-0.3371, 0.6977], [-0.3876, 0.6675], [-0.4291, 0.6425], [-0.4614, 0.6232], [-0.4841, 0.6096], [-0.4969, 0.6019], [-0.4998, 0.6001], [-0.4927, 0.6044], [-0.4756, 0.6146], [-0.4488, 0.6307], [-0.4126, 0.6525], [-0.3672, 0.6797], [-0.3132, 0.7121], [-0.251, 0.7494], [-0.1813, 0.7912], [-0.1048, 0.8371], [-1.0223, -1.5134], [-0.9346, -1.4607], [-0.8425, -1.4055], [-0.747, -1.3482], [-0.649, -1.2894], [-0.5495, -1.2297], [-0.4496, -1.1697], [-0.3501, -1.1101], [-0.2522, -1.0513], [-0.1567, -0.994], [-0.0646, -0.9388], [0.0231, -0.8862], [0.1055, -0.8367], [0.182, -0.7908], [0.2516, -0.7491], [0.3137, -0.7118], [0.3676, -0.6794]]"; ml fit "rx_ica" "ica" [X] "{\"n_components\": 2}"; json load "rx_s" (ml model transform "rx_ica" [X]); json load "rx_t" (matrix transpose (json doc "rx_s")); -> "[c0]" (json select "rx_t" "/[0]"); -> "[c1]" (json select "rx_t" "/[1]"); -> "[res]" (concat "kurtosis of the sources: " (math round (stat kurtosis [c0]) 2) " and " (math round (stat kurtosis [c1]) 2) " (sine about -1.5, square wave about -2) | first source, 4 samples: " (json select "rx_s" "/[0]/[0]") ", " (json select "rx_s" "/[1]/[0]") ", " (json select "rx_s" "/[2]/[0]") ", " (json select "rx_s" "/[3]/[0]")); ml model delete "rx_ica"; json unload "rx_s"; json unload "rx_t"; [res]
kurtosis of the sources: -2.02 and -1.46 (sine about -1.5, square wave about -2) | first source, 4 samples: 1.000000354329059, -1.0000210827263238, -0.9999767733825259, -0.999999127761574
- ICA finds the sources up to a sign and a scale: compare the shapes, not the values.
- With more sensors than sources, give n_components = the number of sources.
Do two vibration sensors see the same source? (coherence)
Two accelerometers on a machine, sampled at 200 Hz: their spectra both show peaks, but which frequencies come from a common source? The coherence is near 1 at a frequency shared by the two signals, near 0 for a peak seen by one sensor only; the phase gives the delay between them.
#1. 2048 samples of each sensor; -> "[a]" "[-0.145, 0.813, -0.461, -0.464, 1.227, -1.362, -1.89, -1.129, -0.674, -0.349, 0.52, 0.401, 0.107, 0.687, -0.217, -2.078, 0.877, -0.355, 0.641, 0.141, 1.833, 1.09, -1.475, 0.214, -0.068, -1.972, -0.945, 0.31, 1.814, 0.655, 0.904, 0.551, -0.237, -0.697, 0.084, -0.45, 0.555, 1.403, 0.18, 0.166, 0.714, -1.983, -0.895, -0.348, 0.368, -0.82, -0.715, 0.873, -0.972, -1.381, -0.688, -1.817, -0.255, 2.072, 1.896, 0.658, 0.556, -0.028, -1.546, -1.268, -0.543, -0.803, 3.467, 2.05, 1.137, -0.106, -0.771, -0.783, -2.294, -0.43, -0.175, -0.016, 0.707, 1.641, -0.565, -1.857, -2.311, -0.972, -0.028, 0.824, 0.999, 0.334, 0.477, -0.63, -1.4, -0.734, 0.1, -0.129, 0.805, 0.265, 1.958, -1.028, -0.876, 0.263, -1.164, -0.642, 1.443, -0.396, 1.358, 3.104, -0.023, -1.059, -0.779, 0.384, 0.315, 0.718, 0.692, 0.811, 0.337, -0.828, 0.613, -1.74, 0.925, -1.355, 0.684, 0.467, 1.978, 0.183, -2.001, -1.88, -1.838, -1.651, 1.665, 1.342, 0.979, 1.163, 1.528, -0.762, 0.144, -0.834, 0.405, 0.943, 1.979, 1.88, -0.688, -1.434, -0.412, -0.985, -0.596, 0.502, 1.164, 0.616, 2.058, 0.573, 1.067, 0.8, -1.099, -0.948, 0.467, 0.204, -0.324, -0.208, 1.407, -0.537, -0.516, -0.574, -0.604, 1.206, 2.726, 1.518, 0.734, -1.621, 0.066, -2.401, -1.668, 0.535, -1.269, -0.893, 1.942, 1.022, -1.285, -0.261, -0.137, 0.089, -0.777, 0.438, 0.504, 1.656, 0.92, -0.404, -0.479, 0.43, 0.142, -1.032, 1.247, 0.897, -0.294, 0.027, -0.86, -1.484, -1.006, 2.073, -0.272, 0.387, 0.715, 0.573, -0.515, -1.346, -0.084, -2.031, -0.636, 0.24, 0.427, 0.424, 1.017, -1.601, -1.215, 0.359, 0.813, -0.634, 0.032, 1.074, 1.112, 0.318, -1.189, -0.745, -1.476, 0.52, 0.81, -0.054, 1.376, 1.635, 0.492, -1.172, -0.32, -0.782, -0.561, 1.11, 0.913, 0.836, 1.808, -1.513, -0.611, -1.617, 0.451, -0.131, 0.817, 1.284, -0.966, -0.198, -0.142, -0.254, -2.109, -0.887, 1.417, 1.557, 1.473, 1.228, -0.723, -0.428, -1.216, -0.715, -0.732, -0.464, 1.278, -1.169, 0.59, 1.162, -0.975, -2.472, -1.609, 0.599, -0.603, 2.787, 0.569, -0.546, 1.024, -1.449, -3.334, -0.824, 1.797, -0.5, 0.968, -0.157, 0.516, -0.351, 0.405, -0.705, -0.092, 1.893, 1.71, 0.162, -0.152, -0.066, -0.262, -1.352, 0.389, 0.938, -0.682, 1.594, 0.519, -0.136, 0.498, 0.172, -0.821, 0.041, -0.558, 0.013, 1.107, 1.781, 0.447, -0.746, 0.596, -0.837, 1.329, 1.479, 0.834, 1.457, 0.439, -0.267, -1.125, -0.712, -1.989, -1.163, 1.318, 2.98, 0.384, -0.586, 0.681, 0.118, 0.118, -0.071, 0.478, 2.207, 0.559, 0.293, 0.026, -0.104, -1.657, -0.266, 0.016, 0.225, 0.628, 1.829, -0.411, 0.496, -1.055, -1.293, 0.284, 1.485, -0.747, 1.171, 0.854, 0.154, -0.519, -0.313, -1.635, -1.369, 0.18, 0.3, 0.846, -0.887, -0.263, -0.191, -0.523, 0.54, -0.791, 0.861, 2.065, -0.456, -0.929, 0.819, -1.208, -1.74, -0.484, 0.42, 0.679, 1.424, 1.269, 0.756, -0.916, 0.255, -0.76, -2.554, 0.56, 0.069, 1.989, 1.144, 0.76, -1.174, -1.195, 0.441, 0.163, 2.296, 0.473, 0.457, 0.154, 0.88, -1.58, -1.798, -1.411, 0.99, -0.168, 1.364, 1.113, 1.073, -2.345, -1.222, 1.169, -1.699, -1.198, 2.707, 1.095, 1.033, 1.008, 0.553, -1.392, 0.101, 0.601, 0.563, 0.36, 0.738, -0.923, -1.182, 0.401, -1.364, -0.513, -0.705, 0.355, 0.0, 1.999, 0.628, 0.124, -0.196, -1.139, 0.082, -1.269, 0.009, 1.831, -0.567, 0.065, 0.445, -2.653, -0.748, -0.99, -0.971, 0.232, 2.286, -0.607, 0.712, 1.048, -1.318, -1.727, 0.483, 2.538, 0.108, 1.935, -0.428, -1.769, -1.305, -0.727, -0.921, -2.737, 0.439, 0.204, 1.234, 1.425, 0.844, -2.873, 0.519, -1.323, -0.395, 0.117, 2.128, 0.934, -1.211, -1.344, -1.929, -0.817, 0.211, 1.622, -0.291, 1.222, 0.049, -0.317, -1.377, 0.523, 0.1, -0.76, 0.106, -0.306, 0.93, 0.939, -0.178, 1.225, -1.405, -0.73, 0.69, 0.674, 2.13, 1.162, 0.334, -1.243, -1.737, -3.315, 0.553, 1.74, 1.246, 1.075, 1.125, 0.169, -0.27, -0.603, 1.026, -0.81, 0.523, 0.99, 1.298, -0.085, -0.106, -0.82, -2.21, -1.001, -0.375, 0.425, 1.076, 1.089, -1.693, -0.263, -0.486, -1.04, -0.072, 1.477, -0.16, -0.598, 1.22, -1.366, -1.254, -1.672, -0.304, -0.147, 1.379, 2.108, 1.323, 0.928, 0.845, -1.611, -2.742, -1.519, -0.448, 0.559, 1.636, 2.319, 0.186, -1.253, 0.33, 0.937, -0.439, 0.797, 0.49, 1.103, 0.059, 0.193, -1.959, -0.673, -0.523, 0.231, -1.016, 0.575, -1.455, 0.184, 0.19, -0.422, -0.267, -1.588, -0.264, -1.071, 0.445, 1.809, 0.604, -0.875, 0.471, -1.665, -1.367, -0.347, 1.993, 0.96, 1.107, 1.909, -0.934, -0.93, 0.316, -0.73, 0.685, 2.051, 0.096, 1.291, 0.233, 0.526, -1.632, -1.193, 0.722, -0.343, 2.261, 1.076, 1.059, -2.124, 0.441, -0.657, -1.131, -0.077, 0.929, 0.624, 1.4, 0.085, -0.304, -1.717, -1.13, -1.727, -1.093, 1.035, -0.261, 0.834, 0.501, -0.649, -1.729, -1.333, 0.517, -0.785, 1.954, 1.007, 0.955, -0.749, -0.631, -0.498, -1.588, -1.881, 0.108, -0.962, 0.587, 0.231, -0.311, -1.661, -0.653, -0.815, -0.763, 0.257, 1.285, -0.111, 1.256, -0.848, -1.941, -1.532, 0.619, 0.261, 0.539, 1.27, 0.46, -0.181, -0.618, -0.839, -0.386, 0.028, 0.034, -0.463, -0.273, 0.337, 0.568, -1.556, -1.973, -0.433, -0.125, 0.928, 0.388, 0.341, 1.25, -0.383, -0.259, -1.341, -0.606, 1.182, 0.73, -0.056, 1.11, 0.604, -2.449, 0.072, -1.15, -1.141, 0.92, 1.679, 1.148, 0.281, 0.51, -2.255, -1.15, 0.314, -0.431, 0.673, 1.157, 0.483, -0.164, 0.054, -0.966, -1.56, -0.255, 1.906, -0.566, 1.089, 2.262, 1.112, 0.366, -0.989, -0.817, -0.265, 1.967, 0.468, -0.07, 0.941, 2.008, 0.476, -1.797, 0.181, -0.072, -0.894, 2.124, 1.984, -1.063, 0.006, -0.455, -2.183, -0.081, 1.191, -0.688, 1.121, 0.597, 1.509, -1.789, 0.047, -1.004, 0.54, 1.256, 2.274, 1.239, -1.269, 0.209, -0.819, -3.242, 1.559, 0.448, 0.805, 0.492, 1.808, 1.01, -1.572, -0.425, 0.376, -1.242, 0.13, 0.941, 0.393, -0.244, 1.778, -1.006, -2.186, 0.259, 0.985, -0.476, 0.829, 0.867, 0.221, 0.684, -0.967, 0.336, -0.973, 0.122, 0.732, 1.668, 3.017, -0.311, -0.243, -1.383, -0.653, -0.226, 0.523, 0.49, 1.285, 1.5, 0.833, -0.138, -0.957, 0.036, -1.46, -1.079, 1.33, 1.08, 0.793, -0.192, 0.248, -1.157, -2.013, 0.449, 0.539, 1.113, -0.161, 0.515, -0.649, -0.743, -0.161, -1.634, 0.423, 0.499, 1.276, 2.003, -0.74, 0.088, -2.416, -0.304, -0.803, -0.893, 0.556, 2.684, -0.204, -0.543, 0.387, -0.846, -0.546, 0.877, 0.045, -0.086, 1.979, 2.021, -1.299, -1.684, -0.674, -1.182, -0.467, 2.655, 0.555, 0.707, 0.684, 0.64, -1.898, -1.644, -0.191, 0.02, 1.563, 2.389, -0.843, 0.46, 0.732, -2.414, -1.632, -0.679, -0.583, 0.711, 0.91, 1.848, -1.155, -0.717, -1.297, -1.355, 0.938, 0.698, 1.469, 1.869, 0.808, 0.414, -1.262, 0.156, 0.52, -0.767, 0.822, -1.364, -1.045, -0.982, -1.298, -1.232, -0.932, -0.089, 0.346, 2.78, 0.108, 0.067, -1.016, -2.275, -1.149, -0.914, -0.244, 1.06, -1.221, -0.752, 0.342, -0.16, -0.691, -2.0, 1.425, 1.083, -0.628, 1.903, 1.268, 0.414, 0.8, -1.7, -1.476, -2.266, 2.045, -0.422, 0.764, 1.194, -0.503, -0.817, -1.786, -0.663, -0.368, 1.788, 1.34, 0.505, -0.037, -0.471, -1.359, -2.706, -0.598, -0.445, -0.134, 1.278, 2.196, -0.219, 0.075, -0.737, -1.492, -0.223, 0.817, 0.106, 0.511, 0.596, 1.978, -1.635, -2.031, 0.196, -1.086, 0.444, 0.977, -0.003, -0.915, 0.534, -1.234, -2.165, -0.581, 1.653, 1.784, 1.39, 0.548, 1.051, -0.302, -0.754, -0.764, -0.839, -0.303, 0.874, 1.489, 0.773, 0.513, -2.408, 0.335, 0.874, 0.89, -0.253, 0.461, 0.385, -0.06, -0.577, -1.182, -2.774, 0.49, 0.436, 0.105, 1.178, 2.283, 0.171, -0.577, 0.656, -1.922, -1.545, 0.921, 1.444, 1.174, 0.618, -0.279, -2.136, -1.469, 0.091, -2.388, 0.372, 0.18, 1.55, -0.293, 0.019, -0.795, -1.097, 0.208, -0.64, 0.277, 0.742, 2.4, 1.533, -1.38, -1.587, -1.388, -1.379, 0.178, 1.451, 0.325, -0.053, 0.52, -0.803, -2.424, -0.969, -0.632, 0.765, 0.786, 2.164, -1.836, -1.354, -0.864, -0.523, -2.67, 0.125, 0.726, 1.278, 0.91, 1.173, -0.356, -2.079, -0.879, -2.117, -1.415, 1.5, 0.849, -0.184, 1.199, -2.079, -1.561, -0.027, -0.634, 0.17, -0.391, -0.225, -0.778, 2.135, 0.852, -0.774, -1.172, -0.519, 1.412, 0.564, 1.746, 2.252, -0.808, 0.123, 0.001, -1.15, -0.362, 0.623, 2.582, -0.831, 1.461, 0.921, -2.066, -1.209, -0.589, 1.072, 0.031, 1.969, -0.795, -0.979, -1.354, -0.243, -1.065, -0.869, 0.355, 0.76, 2.456, 0.156, 1.136, -0.908, -0.213, -0.628, -0.507, 1.041, 1.802, 0.361, 0.25, 1.229, -1.003, -1.17, -0.323, 0.727, 1.036, 1.043, 1.866, 0.127, -0.961, -1.077, -1.063, -1.683, 1.435, -1.263, 1.484, 2.9, -0.329, -2.275, -0.937, -0.918, -0.619, 1.042, 2.369, 0.567, 0.619, 0.469, -1.49, -2.785, 0.25, -0.5, 0.885, 2.267, 1.725, 0.115, -0.596, -0.61, -1.192, -0.783, 0.707, 0.883, 0.402, 1.746, 0.885, -1.188, 0.024, -0.668, -1.76, 0.701, 3.235, 1.296, 0.082, -1.179, -1.194, -1.422, -0.656, 0.054, -1.792, 2.145, 1.409, 0.167, -1.141, -1.371, -0.209, 0.551, 0.868, 0.822, 0.273, 0.447, 0.497, -1.553, -1.676, 1.444, -0.01, -1.1, 0.94, 1.086, -0.281, 0.031, -0.991, -1.583, -0.341, 0.438, 0.959, 1.22, 1.953, 0.403, -0.434, -0.11, 1.204, -0.605, 0.605, 1.474, 0.764, 0.391, 0.256, -0.852, -0.429, 0.502, -1.625, 0.257, 1.367, 0.969, -0.468, -0.143, -0.938, -1.687, -0.813, 1.044, 0.636, 0.533, 1.265, -0.413, -0.771, -0.461, 0.329, -0.76, -0.458, 0.598, 1.104, -0.086, 0.934, -0.946, -0.319, -0.582, -0.196, -0.038, 0.499, 1.201, 0.397, 1.554, 0.827, -0.686, -0.531, 0.62, -0.332, -0.121, 1.141, 0.201, -2.509, -0.632, -0.189, -2.686, -0.666, -0.087, 0.564, 1.539, 1.197, 0.764, -2.767, -0.737, -0.542, -1.771, 3.062, 1.201, 0.242, -0.201, 0.772, -0.929, -2.636, 0.236, 1.087, 1.306, 1.211, 0.64, -1.703, -0.565, 0.75, -0.138, -0.759, 1.063, 0.948, 0.808, 1.671, 0.279, -1.742, -1.754, -0.464, 0.151, -0.737, 2.899, 0.082, -0.531, -0.899, -0.159, -1.605, -1.37, 1.783, -0.83, 1.102, 0.146, -0.445, -1.563, -0.449, -1.222, -1.052, 0.441, 0.906, -0.146, 0.474, 1.407, 0.041, -1.685, 0.597, 0.317, 0.543, 0.014, 0.233, 0.198, -1.092, 0.533, -2.114, -0.772, 1.675, -0.04, 0.438, 0.799, 0.018, -0.899, -0.882, 0.253, -1.775, 0.24, 0.753, 0.621, -0.727, 0.392, -1.156, -0.778, -0.618, 1.46, -0.305, 0.804, 1.267, 0.577, -0.184, -1.147, -0.123, 0.473, 0.316, -0.442, 0.248, 1.276, -0.279, -1.881, -0.465, -0.509, 0.632, -0.188, 0.88, -0.335, 1.085, -0.233, -0.814, -1.956, -1.04, 0.172, 0.388, 0.069, 2.228, 1.259, 0.268, -2.057, -1.157, -0.982, 1.228, 1.95, 0.252, -0.252, 1.323, -0.289, 0.163, -0.44, -0.237, -0.053, 0.315, 0.843, -0.69, 0.057, -0.04, -2.379, -1.15, 1.376, 0.764, 1.264, 1.362, 0.094, -0.006, -0.914, 0.302, -1.003, -0.542, 1.547, 1.62, 1.207, 0.913, -1.264, -1.235, 1.184, 0.745, -0.823, 2.006, 0.822, -0.412, 0.287, -0.406, -1.217, -0.822, 1.178, -0.344, 2.068, 1.427, 0.971, -2.108, 0.017, -0.819, -2.267, -0.23, 2.42, 0.587, -0.92, 1.047, -1.244, -0.814, 0.56, -0.303, 0.375, 1.387, 2.053, 0.386, -0.409, -0.227, -0.797, -0.276, 0.434, 0.634, 1.685, 0.896, 1.523, 0.271, -0.325, 0.89, 0.015, -0.229, 0.213, 0.33, -1.266, 1.192, 0.389, -2.317, 0.768, 0.685, -0.841, -1.011, 2.108, 0.429, -0.003, 1.208, -1.076, -1.214, 0.601, -0.081, 0.284, 0.518, 2.032, -0.752, -0.546, -1.458, 0.045, -0.531, 1.648, 0.535, 1.422, 0.478, 0.297, -1.957, -1.094, -1.17, 0.378, 0.515, 1.738, 0.914, -0.537, 0.874, -2.31, -2.198, -0.188, 0.444, -0.709, 0.599, 1.099, -1.688, 0.299, -0.819, -0.359, -0.747, 2.854, 1.016, -0.948, 0.795, -1.594, -0.47, -0.531, -0.312, -0.169, 1.254, 2.497, 1.334, -1.456, -0.603, -0.297, -1.424, -1.329, 0.699, 0.633, -0.036, 0.841, -0.101, 0.084, -0.798, -1.596, 0.355, 0.383, -0.268, 0.984, 0.399, -0.244, -0.167, -1.202, -0.636, 0.965, -0.502, 1.152, 1.137, 0.971, 0.346, -1.105, -1.781, -1.312, 1.074, 1.61, 0.962, 0.961, 0.803, -1.617, -0.774, -1.089, -0.594, -0.767, 1.486, 1.578, 1.218, 1.128, -0.108, -1.124, 0.487, 1.252, -0.714, -0.254, 1.142, 0.255, -0.732, -0.788, 0.413, -2.367, 0.601, 2.243, 1.32, 2.169, 1.24, -1.058, -0.858, 0.653, -0.042, 0.674, 0.325, 1.35, 0.667, 0.121, -0.008, -1.526, -0.64, -0.516, -0.389, 0.906, 1.431, -0.72, -0.682, 0.19, -1.349, -2.011, 0.804, 1.839, 0.294, 1.322, -0.726, -0.94, -1.489, 0.222, -0.187, -0.368, 1.563, 0.513, 2.567, 0.623, 0.251, -0.751, -1.661, 0.621, 0.157, 0.153, 0.975, -0.455, -2.733, -1.307, -1.129, -0.157, -0.707, 1.088, 0.309, 0.022, 0.161, -0.673, -1.741, -1.599, 0.437, -0.099, -0.221, 1.578, -0.24, -1.09, 0.365, -0.956, -2.252, -0.324, 1.426, -0.411, 1.494, 1.232, -0.7, -1.917, -1.506, -1.699, 0.057, 2.183, 0.502, -0.421, 1.51, -0.489, -0.599, -0.965, 0.418, -0.979, -0.853, 1.56, 0.884, 0.02, -0.679, -1.445, -1.728, -0.355, 1.481, -0.308, 0.806, 0.774, -0.99, 0.006, -0.573, -1.069, -0.682, 1.814, 1.626, 0.435, 0.542, -0.298, -1.522, -0.677, 0.595, -0.213, -0.01, 1.377, -0.038, -0.839, 0.749, -0.227, -2.073, 1.94, 1.356, 1.179, 1.729, 0.748, 0.725, -0.326, -0.318, -0.811, 0.21, 0.188, 2.005, -1.265, 2.124, -0.119, -0.4, -1.539, -1.115, 1.445, 0.012, 4.182, 1.661, -0.687, 0.914, -1.978, -2.075, -0.675, 0.617, 0.213, 1.42, 0.36, -1.047, -1.6, -1.203, -0.265, -0.551, -0.017, 1.536, 0.679, -0.851, 1.112, -0.194, -0.662, 0.288, 0.623, 0.638, 1.536, 1.761, -1.254, 0.784, -1.093, -0.246, -0.664, -0.131, 1.171, -0.116, 1.148, 0.501, -1.254, -1.219, -1.373, -1.51, 0.615, 1.255, -0.421, -2.222, -0.865, -1.227, -1.702, -1.319, 1.627, 1.41, 0.464, 1.542, -1.228, -0.039, -0.081, -1.272, -1.652, 0.652, -0.332, 0.867, 0.282, -0.303, -1.716, -1.416, 1.454, -0.579, -0.467, 1.226, -0.642, 0.951, 1.118, 0.171, -0.205, -0.169, -0.477, -0.805, 0.837, 1.009, -0.026, -2.654, -0.38, -1.224, -0.832, 2.578, -0.075, -0.053, 1.243, 0.477, 0.19, -2.489, 0.145, -0.76, 0.413, -0.899, 0.481, 0.662, 0.963, 0.508, -1.299, -1.445, 0.41, 0.695, 1.014, 0.492, -0.597, -1.213, -0.744, -0.337, -0.818, -0.32, 0.727, 0.798, 1.312, 0.231, -0.048, -1.758, -1.221, 0.297, 0.294, 1.767, 2.068, 0.838, 0.497, -1.272, -0.46, -0.267, -1.122, 1.046, 0.252, 1.004, 1.14, -0.257, -0.477, -0.522, -0.693, 0.0, 0.784, 1.123, 1.071, 0.22, 0.125, 0.178, 1.364, 0.859, -1.787, -0.081, 1.163, 0.389, 0.326, 0.829, -1.132, -0.302, -1.067, 0.192, -0.276, 0.93, 0.396, -0.532, -1.452, -1.484, 0.025, -1.225, 1.517, 0.877, 1.283, 0.542, -0.293, -0.958, -0.62, -0.653, 0.749, -0.308, 1.21, 0.957, -0.492, -1.146, -1.821, -1.094, 0.506, 0.044, 0.625, 0.071, -0.911, 0.643, -0.783, -1.84, -2.297, -1.419, 0.672, 0.54, 1.357, -0.084, 0.286, -1.79, -1.595, 1.571, 0.653, 0.525, 2.049, 0.983, -1.172, -0.893, -1.551, -1.058, -0.095, 0.69, 0.086, 0.251, 1.604, -0.723, -1.037, -1.631, -0.532, -0.567, -0.033, 2.067, 2.384, 1.177, 0.755, -0.653, -0.743, -0.16, 0.639, 0.189, 0.794, 1.201, 1.022, -0.503, 1.665, 0.037, -0.241, 0.178, 2.168, 0.08, 0.757, 0.084, -1.653, -0.202, -1.93, -2.049, 0.585, 1.79, 0.32, -1.245, 0.2, -0.909, -0.194, -1.657, -0.86, 1.236, 2.819, 2.446, 1.055, -0.33, -0.122, -1.111, -1.743, 1.199, 0.416, 2.036, 1.237, 0.392, -1.482, -1.757, -1.177, -0.98, -0.302, 0.728, 0.792, -1.068, 1.299, 0.605, -0.584, -0.781, 0.743, 1.261, 1.942, 1.735, 0.73, 0.305, 0.837, -1.812, -2.372, 2.259, 1.192, 2.614, 0.358, 1.387, -0.738, -0.745, -0.882, -0.457, -0.23, 0.851, 0.408, -0.402, 0.233, 2.204, -2.005, -0.946, 0.329, 0.808, 0.486, 0.835, 1.062, -2.107, -0.826, -0.876, -2.074, 0.048, 1.013, 1.202, 0.92, 1.238, -0.319, -1.184, -0.529, 0.329, -0.738, 2.394, -0.074, 0.564, -1.166, 0.317, -2.251, -1.959, 0.429, 0.488, 1.112, 1.762, 1.327, -1.497, 0.393, -0.684, -1.962, -1.953, 1.594, 2.315, 0.45, 1.339, 1.109, -2.263, -0.987, 0.333, 1.507, 1.723, 1.823, -0.471, 1.444, 0.13, -1.235, -1.785, 1.752, 0.183, -0.325, 1.046, 1.452]"; -> "[b]" "[-1.084, 0.377, 0.55, 0.063, -0.783, 0.323, 0.563, -0.365, -1.008, -0.565, 1.373, 0.284, 2.059, 0.244, -0.972, 0.163, -1.856, 0.942, -0.422, 1.089, -0.75, -1.166, 1.493, -1.099, -1.733, -0.849, -0.534, -0.743, -0.703, -0.261, 0.96, 0.135, -1.99, -0.528, 0.504, -1.293, -0.264, -1.853, -1.642, 0.169, 1.082, -0.176, -0.918, 0.965, -1.594, -0.036, -0.283, -0.646, 0.26, -0.873, 0.625, 1.225, 0.775, -0.959, -0.58, 0.246, 0.48, 0.603, 1.023, -1.79, -0.466, -0.628, -0.604, -0.137, 1.189, 1.29, 0.026, -1.394, -0.686, 1.127, -0.963, 0.543, 0.331, 1.306, 0.884, 0.386, -0.068, 0.255, 0.931, -1.184, -0.996, 1.317, 1.113, -1.228, 0.146, -1.206, -0.23, -0.531, -0.719, 0.745, 0.693, 0.882, 0.378, -1.405, -0.85, -0.074, -0.063, 0.414, -0.368, 0.759, 0.723, -0.809, -0.826, 1.102, -0.06, -2.489, -2.663, 2.027, 0.782, 0.741, 0.112, -0.368, -0.22, -1.609, -0.717, 0.477, 0.262, 1.621, -0.667, -1.3, 2.771, 0.239, -0.168, 0.279, 1.852, 0.292, 1.211, -0.157, 0.054, 0.341, -1.64, -1.101, -0.085, 0.574, 1.102, -0.506, -0.371, -0.236, -0.917, -1.229, -0.522, -0.357, 1.066, 0.188, 0.544, 1.326, 0.865, -0.32, -1.308, -0.593, 1.945, 0.476, -0.319, 0.187, 0.712, -0.504, -2.951, -1.21, 1.158, 1.38, -1.223, -1.69, 0.916, 0.962, -0.213, -2.942, 1.253, 1.69, 2.433, -0.981, 2.373, 0.098, -1.185, -2.419, -2.068, -0.287, -0.514, 0.688, 0.799, 2.488, 1.205, -0.97, -2.306, -1.572, 0.58, 0.459, -1.924, -0.516, 1.38, 2.277, -1.257, -0.526, -0.388, 1.322, 0.868, 0.432, 0.357, -1.098, 0.311, -0.26, -1.817, 0.297, -0.875, -0.249, 0.539, 0.782, 0.596, -0.886, -1.074, 0.927, 0.576, -0.257, -0.076, 1.956, 0.331, 0.214, -1.557, 0.095, -2.106, -0.045, -1.456, 0.351, 1.819, 0.62, -1.17, -1.325, -1.016, 1.046, -0.572, 0.43, 1.127, 2.275, -0.013, -1.685, 0.729, 0.822, -0.333, -0.772, 0.01, 2.216, 1.177, 0.109, -0.269, 0.447, 1.035, -0.606, -0.688, 0.225, 1.029, 0.421, -2.042, -0.908, 0.571, -0.257, -0.784, -0.511, 0.52, 0.12, -0.529, -2.645, -0.627, 0.622, 0.086, -0.669, 0.801, 1.478, -0.84, -0.885, -0.513, 0.35, 0.234, -0.36, 0.804, 2.16, 1.603, -1.189, -1.019, -1.69, -0.176, 0.152, -0.991, 1.331, 1.782, -0.547, -0.466, -0.413, 0.936, 0.476, 0.752, -1.279, 0.138, 0.059, -0.761, -1.808, -1.654, -1.295, -0.389, -2.297, 0.377, 1.649, 0.054, -1.68, 0.641, 0.627, -0.628, -1.008, -1.452, 1.327, 1.914, 0.439, -1.561, 0.699, 1.498, -1.521, -1.079, 1.103, 1.937, 0.436, 0.411, -1.261, 0.322, -1.05, -1.924, 1.326, 2.102, -0.44, 0.391, -0.052, 0.964, -0.801, -2.342, -1.228, 1.125, 1.059, 1.138, -0.972, -0.75, 1.034, -0.347, 0.025, -1.533, 1.401, 1.252, -1.273, -0.094, -0.927, 0.087, -0.862, -2.349, -0.551, 1.744, 1.13, 0.283, -1.083, -0.093, -0.499, -1.753, -0.855, -1.065, 0.222, -0.257, -1.302, 0.542, 1.08, -1.08, -1.197, -0.808, 0.805, 0.088, -0.426, 0.917, 0.313, 0.846, -0.638, -0.994, 1.059, 1.493, -1.331, 0.051, 1.307, -0.6, -0.584, -2.005, -0.509, 1.059, 0.11, 0.4, 0.135, -0.356, -0.318, -1.924, 0.046, 0.973, -0.135, 1.228, -0.04, 0.583, 0.028, -0.009, -1.046, 0.879, 1.325, 0.498, 0.208, 0.55, 0.761, 0.706, 0.638, -1.003, 0.828, 1.045, 1.762, 0.42, 1.551, 1.523, -1.142, -1.206, -1.424, 0.204, -0.353, 0.374, 0.177, 1.963, -0.446, -0.164, -1.5, 0.376, -0.362, 0.283, 0.02, 2.852, 1.136, 0.224, -0.164, -0.233, -0.324, -0.768, -0.665, -1.321, 1.047, 1.298, -2.513, -0.526, -0.01, -0.738, -0.122, -0.339, 1.715, 1.248, -0.073, 0.298, -1.293, 0.605, 1.233, -1.331, -0.983, 2.331, 0.235, 0.072, 0.094, 0.009, -0.18, 0.469, -0.814, -0.003, -0.258, 1.675, -0.225, -0.53, -0.121, -0.271, -1.0, 0.523, 2.129, 1.765, -0.404, -0.491, -0.936, -1.113, -0.453, 0.245, 0.369, 1.53, 0.4, -1.719, -0.594, -0.079, -0.987, 0.896, -0.92, 0.96, 0.585, -0.864, -2.075, -0.747, -0.049, -0.268, -0.353, -1.117, -0.227, 0.675, -0.287, 0.182, 0.363, -0.756, -0.884, 0.093, 0.688, 0.907, 0.064, -1.163, 0.599, -1.369, -0.191, -0.994, -0.117, 2.156, 0.371, 1.1, 1.208, -0.327, -1.401, -2.467, -0.69, 0.578, 1.043, 0.35, -0.804, -0.206, -0.996, -0.149, -1.073, -0.506, 1.531, 0.404, 2.351, 0.671, -1.462, -0.039, -0.826, 0.244, 1.656, 1.274, -0.52, -0.411, -0.216, 1.036, -1.055, -0.821, 0.179, 1.604, 0.62, -0.024, 0.094, 0.724, -0.594, -0.559, -1.203, -0.133, 1.379, 1.08, 0.125, 0.319, 0.334, -1.207, -0.881, -0.296, 0.849, 0.564, -0.257, -0.637, 1.254, 0.317, -1.301, -0.202, -0.257, 1.221, 0.532, -0.144, 0.126, 0.214, -0.406, -1.926, -1.389, 1.264, -0.136, -0.481, -0.16, -0.259, -1.053, -0.796, 0.045, -0.972, 0.548, -0.424, -1.295, 1.162, 0.341, -1.421, -1.13, -0.486, 1.3, 1.294, -0.273, 1.129, 0.506, 1.432, -1.453, -0.844, -0.282, 0.928, -0.547, -0.031, 0.709, 1.712, -0.919, -2.141, -1.602, -0.442, 0.463, 0.045, 2.424, 2.154, 1.314, -1.555, -0.603, 0.429, -0.885, 1.124, -0.538, 0.973, 0.259, 0.481, -1.323, -1.067, 0.184, -0.781, -0.418, 0.132, 1.759, 0.819, -1.715, -0.461, 0.714, 0.755, -1.425, 0.458, 1.861, -0.347, 0.679, -2.428, -1.553, 1.179, -1.414, -1.152, 1.065, 0.579, 2.076, -0.574, -0.412, -0.044, 0.296, -0.984, 0.009, 1.3, 0.175, 0.877, -1.264, -1.706, 0.566, -1.073, -0.914, 0.619, 0.473, 2.324, 0.333, -0.283, -0.573, 1.023, -1.568, 0.548, 0.108, 1.367, -0.695, -0.486, -0.327, 0.746, -0.75, -2.004, 0.129, 0.954, 1.776, 0.192, -1.607, -0.029, 0.376, -0.228, -1.188, 0.502, 2.496, 0.151, -0.26, -0.603, 0.198, -0.487, -1.393, -0.209, 1.963, 1.237, -0.607, -1.936, 0.079, 0.262, -2.279, -0.283, 0.241, 0.944, 2.06, 0.497, -0.799, -0.158, -0.761, 0.529, 0.403, 0.212, 1.159, 1.003, 0.087, 0.214, 0.02, -1.235, -0.881, -0.952, 1.682, 2.34, -0.986, 0.733, 0.679, 0.85, 0.405, -0.514, -0.069, 1.98, 0.056, -0.008, 0.086, 0.121, -0.85, -0.944, 0.627, 0.779, 0.413, -1.297, 0.192, 1.268, 1.172, -1.829, -0.289, -0.145, 0.824, 0.061, -0.747, 0.086, 0.392, -0.835, -1.257, 0.271, 0.106, 0.809, -1.064, 1.012, -0.198, -0.027, -1.601, -2.306, 0.827, -0.657, -0.638, 0.576, -1.17, 0.812, 0.696, -1.909, 2.184, 0.791, 0.746, -0.473, 0.829, 1.023, 0.2, -2.068, -1.012, 0.418, -0.322, -0.236, -0.584, -1.321, 0.863, -0.756, -1.014, -0.668, 0.157, 0.568, 0.108, 1.208, 1.098, 0.577, -0.91, -1.043, -0.021, 0.062, 1.762, -2.12, 2.208, -0.997, -0.252, -1.394, -1.229, 1.549, -0.221, 0.124, 2.083, 2.289, 1.268, -0.254, -1.624, -1.618, -0.564, -0.722, 0.883, 0.472, 1.863, -0.581, -1.267, -0.889, -0.053, -1.188, -0.138, 0.986, 1.032, -0.047, 0.126, -1.187, 0.318, 2.216, -0.987, -0.93, -0.183, 0.936, 0.37, -1.954, -0.776, -0.386, 0.239, -1.301, -0.484, 0.913, 0.346, -0.344, -0.943, -2.769, -0.301, -0.747, -1.191, 0.127, 0.897, 0.859, -0.046, -0.257, -0.238, -0.058, -1.363, 0.959, 1.259, 0.694, -0.058, 0.045, -1.875, -0.392, 0.316, 1.517, 0.085, 0.341, 0.478, -2.0, -2.116, -0.045, 0.302, -1.077, 0.153, -0.158, 2.537, -1.023, -0.197, -0.239, 0.283, -1.178, -0.924, 1.259, 0.743, -1.499, -1.615, -0.074, 0.827, -1.109, -0.064, -1.411, 0.128, 1.606, 0.572, -1.737, -1.442, 0.345, -1.105, -2.053, 0.435, 0.657, -0.116, 0.378, 0.724, 1.748, -0.755, -0.562, -0.791, 2.435, 2.234, 1.556, 0.082, 1.235, 1.585, -0.925, -0.817, -0.088, 0.671, 0.61, -0.296, 1.069, 0.331, 0.165, -1.464, -2.768, 0.413, 0.06, -0.434, -1.496, 0.854, 1.528, -0.394, -1.228, -0.053, 1.196, 1.58, -0.812, 1.371, -0.777, -0.187, -0.138, -0.205, 0.481, 0.569, -0.763, 0.43, -0.512, 1.532, -1.294, -1.663, 0.034, 0.007, 0.758, -0.359, 0.589, 0.116, -0.09, -0.211, -1.364, 1.867, 0.802, -1.232, -0.307, 2.106, -0.035, -1.778, -2.054, -0.148, -0.101, 0.129, 0.081, -0.543, -0.0, 1.605, -1.437, 0.428, 0.777, 0.734, 0.076, 0.728, -0.079, 2.25, -1.137, -1.596, -0.611, 0.518, 1.479, 1.098, 0.624, 0.878, 1.056, -2.307, -2.439, -0.446, 0.059, 0.92, -1.139, -0.869, -0.025, -0.867, -1.994, -0.402, 1.002, 0.215, 1.206, 0.285, 0.27, 1.901, 0.141, 0.875, 0.448, 1.528, -0.546, -0.718, 3.452, 1.393, -1.093, -1.606, -0.077, -0.391, -0.565, -0.974, 0.167, 0.409, 0.221, -2.358, -0.743, -1.059, -0.001, 0.151, -1.779, 1.1, 1.746, 0.816, -0.026, -1.555, -0.544, 0.42, -1.161, -0.25, 1.731, 1.724, -1.829, -0.509, -0.117, 1.152, -0.112, -1.292, 0.139, 0.818, 0.462, -2.407, -0.109, -0.803, -0.512, -1.349, 1.325, 0.341, 1.683, 0.478, -0.219, 1.284, 0.293, -1.307, -0.364, -0.566, 2.248, 0.636, -0.761, -0.431, 1.618, -0.166, -0.955, -0.169, 0.576, 1.55, 0.147, -0.612, -0.819, -0.684, -1.435, -0.333, 1.446, 0.879, -0.238, -0.086, -2.793, 0.192, -0.511, -0.404, 0.413, 1.149, 2.7, 0.426, -0.31, 0.577, 0.407, -1.051, -1.081, 0.621, 1.297, 3.161, 0.95, -0.859, 0.305, -0.26, -1.131, 0.795, 0.399, 0.975, 0.845, 2.245, -0.965, 0.444, 0.463, -2.042, -0.16, 0.987, 1.519, -0.285, 1.665, 0.662, 0.055, 0.497, -1.364, -0.248, 0.184, 0.3, 1.739, 0.363, 0.864, -0.091, -1.59, -0.231, 0.673, 1.21, -0.066, 1.27, -0.819, 1.237, -1.422, -0.591, -0.258, 0.751, 0.451, 0.475, -0.102, 0.636, -1.264, -0.877, 0.189, 0.8, 2.406, -0.044, 0.349, 0.059, 0.909, -0.408, -0.567, 0.476, 1.752, 0.291, 0.655, 1.253, 1.464, 0.101, -1.627, -1.16, 1.21, 1.16, -0.845, 1.76, 1.668, 0.299, -1.56, -1.874, 1.049, 0.728, 0.471, 0.569, 1.651, -0.248, -0.013, -1.031, -0.326, -0.583, -0.754, 0.521, 0.501, 1.053, 1.724, -1.963, -0.528, -0.478, -0.259, -1.211, -0.367, -0.075, -0.048, -0.335, -0.761, -0.183, 0.712, 0.049, 0.118, -0.286, 1.214, 0.434, -1.26, -0.849, 0.084, -0.331, 0.835, -0.579, 2.128, 0.122, -0.81, -0.389, -2.073, 0.33, -0.185, 0.189, 0.269, 1.09, 0.462, -1.464, -1.816, -0.752, 1.958, -0.531, -0.095, 2.035, -0.922, 0.797, -0.233, 0.56, 0.557, -0.718, -0.008, 0.404, 1.385, 0.38, 1.011, -1.056, -0.396, 0.502, 0.485, -0.239, 0.945, 0.935, -0.851, -0.542, 0.012, -0.585, -0.658, 0.006, 0.742, 1.548, 0.967, 0.083, -1.302, -0.677, -0.417, -1.608, 0.843, 0.545, 2.105, 0.221, -1.087, -0.383, 0.794, -0.746, 0.512, 0.737, -0.351, 0.754, 0.335, -0.469, -0.45, 0.506, -0.609, -2.227, 0.591, 1.672, 0.274, -0.426, -0.682, 0.244, 0.425, -1.067, -0.002, -0.522, -0.123, -1.079, -0.015, -0.08, 1.489, -0.228, -1.05, 1.314, 0.02, 0.663, 0.431, -1.441, 0.173, 0.292, -0.937, 1.037, 1.695, 0.995, 1.007, -0.126, 0.346, -0.422, -2.615, -1.781, -0.461, 0.662, 0.992, 0.163, 0.633, 0.477, 0.946, -1.473, -1.451, 2.145, -0.036, 0.249, 0.083, 1.265, 0.461, -0.721, -1.789, -0.872, 0.238, 0.161, -1.079, -0.371, 1.056, -1.093, -1.786, -1.198, 1.084, 1.806, -0.578, -0.898, 0.33, 1.354, -0.317, -0.128, -1.457, 0.137, 1.026, 2.117, 0.462, 1.575, 0.587, -1.737, 0.112, 0.061, 1.78, -0.05, -0.425, 1.104, -0.339, -1.355, -0.933, 0.047, 1.716, 0.209, 0.45, 0.613, -0.703, 0.884, -1.416, -1.243, 1.254, 0.024, -1.19, -0.25, 2.04, 1.912, -1.873, -1.286, -1.614, -0.229, 1.612, -0.282, 1.834, 1.271, -0.741, -0.636, -0.905, -1.046, 2.169, -0.717, 0.551, 0.842, 0.741, 0.4, -2.477, -0.829, -0.3, -0.726, 0.177, -0.036, 1.643, 0.475, -1.577, -0.579, -0.0, -0.272, -0.096, -0.861, 0.172, -0.065, 0.387, -2.214, 0.149, 1.562, -0.175, -0.934, -0.198, 1.03, 0.54, -1.656, -0.764, -0.603, -0.85, 0.946, 0.139, 0.657, 2.085, -0.147, -0.98, -0.227, -0.198, -0.756, -1.452, -0.131, 2.045, 0.47, -0.509, -1.478, -0.638, 0.803, 0.547, -0.64, 0.274, 0.542, -0.083, -1.656, 0.159, -0.67, 1.219, -0.305, 0.005, 1.368, 0.194, -1.212, -0.742, 0.301, -1.67, -1.059, -0.387, 2.519, 1.726, -0.747, 0.163, -0.06, 0.789, 0.768, -0.523, 1.152, 0.926, 0.282, -1.123, 0.542, 0.564, 0.846, -0.671, -0.798, 0.686, 0.534, 0.144, 2.112, -0.619, -0.528, 0.256, -1.102, 0.584, -0.231, 0.883, -0.15, -0.444, 0.995, 0.662, -0.287, -2.492, 0.942, 1.701, 0.619, -0.295, 1.449, -0.709, 0.46, -0.078, -1.419, 0.458, 1.399, 0.894, -1.003, -0.575, -1.935, -0.846, -0.257, 0.073, 0.501, -0.472, -1.135, -0.668, 0.745, 0.329, -0.68, 0.234, 1.946, -0.132, -0.391, -0.979, -0.32, 0.054, -2.609, 0.391, 0.239, 3.232, 0.161, 1.0, 0.248, 0.98, 0.5, -1.762, -0.14, 0.951, 0.149, 0.506, 0.473, -0.478, -0.427, 0.333, -0.574, 0.613, 1.183, 0.968, -0.993, 0.037, -0.149, 1.491, -0.72, 0.465, 1.178, 0.898, 1.558, -0.468, 0.967, 0.789, -0.019, -1.949, -1.18, 1.536, -0.36, 0.47, -0.442, 0.971, -0.404, -0.739, -0.932, 1.451, 0.901, -2.336, 0.251, 1.793, 1.111, -0.543, -1.186, -0.212, 0.427, -0.768, -0.433, -0.258, 1.428, -1.001, -0.101, -1.89, 0.799, -0.311, 1.517, -0.866, 0.761, 0.234, -0.281, -0.656, 0.288, 0.965, -0.644, 1.49, -0.296, 0.09, 0.755, -1.888, -3.063, -1.469, 0.471, -0.121, 0.691, 0.848, -0.022, 0.886, -1.403, -1.171, -0.008, 0.472, -1.972, -0.39, 1.554, 0.613, -1.637, -0.692, 0.852, -0.767, -0.252, -0.484, 1.642, -0.088, 0.382, -1.911, 0.44, -0.57, 0.381, 0.377, 0.511, 1.303, 1.117, -1.504, -1.617, 0.648, 0.919, -1.349, -0.31, -0.731, 0.589, -0.062, 1.683, -0.201, -1.157, 0.367, -0.319, 0.638, 1.04, 0.101, -0.764, -0.332, -0.351, -0.431, -1.135, -1.53, 1.392, 1.136, -0.706, -0.261, -1.969, -0.054, -0.866, -1.467, -0.83, 3.37, 0.533, -0.483, -1.728, -0.236, 0.685, -0.052, -0.095, 0.09, 1.3, -0.214, -1.504, -1.893, 0.22, -1.294, 0.236, -2.237, 1.195, 1.345, -0.837, 0.218, 0.963, 0.287, -0.082, -0.851, 0.179, 1.598, 1.49, -1.024, 0.811, 0.031, -1.598, 0.131, -0.234, 0.324, 0.978, -1.081, -0.282, -0.639, -0.406, -0.652, -1.493, -0.779, 1.003, 0.345, -0.24, 0.001, -1.004, -0.946, -1.752, -1.413, 0.136, 1.702, 1.091, -0.235, 0.331, -0.153, -1.292, -1.159, -0.313, 0.653, 0.148, -0.054, -0.258, -0.306, -0.105, -2.759, -1.024, -0.02, 0.654, -0.252, -1.561, 0.254, 0.504, 1.137, -0.505, 0.215, 1.181, 1.472, -0.995, 0.552, 0.571, 0.604, -1.654, 0.657, -0.09, 1.446, 1.99, -0.151, 0.268, 1.146, -1.403, -0.416, -0.599, 1.031, 1.148, -1.385, -0.419, 0.117, 0.285, -0.519, -0.866, 0.337, 1.007, 0.781, -0.888, 0.202, -0.604, 0.661, -1.574, -0.686, 0.983, -0.072, -0.009, 0.94, 1.187, -0.978, -2.296, -2.167, 0.132, 1.869, 0.829, -0.152, 0.245, 1.192, -0.669, -1.738, 0.369, 0.39, 1.294, 0.895, 2.512, 0.846, 0.544, -1.669, -0.621, 0.524, -0.062, 0.506, -1.034, 0.716, 1.41, 0.7, -0.87, -0.734, 0.176, -0.22, 1.115, 0.39, 0.461, 1.102, -0.297, -1.154, 0.56, -1.161, -0.306, 0.147, 1.54, 2.913, 0.424, -1.766, -1.031, -1.284, -0.653, 0.01, 1.951, 0.619, 1.309, -0.437, -0.028, -0.317, -0.809, -1.643, 0.228, -0.121, 1.196, -1.177, -0.509, -0.926, -0.263, -0.754, -0.529, 0.564, 1.289, 0.624, -0.686, -0.391, -1.055, -1.106, -1.198, -0.509, -0.473, 0.225, 0.885, -0.335, -1.191, 1.047, -1.239, -1.267, 0.546, 2.827, 0.999, 0.163, 0.588, -1.171, 1.959, -1.081, -0.494, 1.67, 1.469, -0.416, -0.461, 0.357, 1.182, -0.144, -1.573, -0.019, 1.934, 1.547, -0.137, -0.343, -1.335, 1.019, -1.356, -1.04, -0.361, 0.518, 1.454, -0.875, 0.109, -0.889, -0.133, -1.748, -0.73, 0.465, -0.251, -0.29, -0.605, -1.751, -0.42, -0.866, -0.623, 0.595, 0.472, 0.795, -0.862, 0.011, 2.017, -0.37, -1.58, -0.907, 1.466, -0.5, -0.326, -0.071, -0.221, 0.881, -0.749, -0.728, -0.801, 1.917, 0.873, 0.435, 0.492, 1.899, 0.346, -0.044, -0.262, -0.576, 1.002, 1.164, -0.56, 0.694, -0.388, -1.766, -0.257, 0.032, 1.765, 0.315, -0.314, -0.693, 0.982, -0.382, -0.403, -0.073, -0.019, 0.172, -1.689, -0.715, 0.492, -0.366, -1.76, -2.634, -0.072, 0.555, 0.887, -0.856, 0.653, 0.619, -0.658, -1.68, 0.948, -0.904, 0.304, -0.215, 1.808, 0.259, 1.251, -0.263, -1.173, -0.333, 0.387, 0.158, 1.331, 0.068, 1.426, 0.885, -1.615, -0.261, -0.916, -1.657, -0.455, -0.493, 0.648, 0.813, 0.069, -1.712, -2.449, -0.8, 0.037, -0.162, 0.157, 1.279, 0.174, -1.193, -1.762, 0.562, 0.724, 0.647, -0.81, 1.511, -0.332, -0.188, 0.708, -0.118, 1.415, 0.745, 1.323, 0.915, 0.535, 1.129, -1.561, -1.396, -0.91, -0.547, 0.571, -0.64, -0.05]"; json load "rx_c" (dsp coherence [a] [b] 200 256); -> "[res]" (concat "max coherence " (math round (json select "rx_c" "/max_coherence") 3) " at " (json select "rx_c" "/max_frequency") " Hz | at 60.9 Hz: " (math round (json select "rx_c" "/coherence/[78]") 3) ", at 46.9 Hz: " (math round (json select "rx_c" "/coherence/[60]") 3) " | 5 % level " (math round (json select "rx_c" "/significance_5_percent") 3) " | phase at the common frequency " (math round (json select "rx_c" "/phase/[29]") 2) " rad"); json unload "rx_c"; [res]
max coherence 0.94 at 22.65625 Hz | at 60.9 Hz: 0.023, at 46.9 Hz: 0.17 | 5 % level 0.193 | phase at the common frequency -1.07 rad
- The frequency resolution is fs / nperseg: 256 points give 0.78 Hz; longer segments sharpen the peaks but leave fewer segments to average.
- The delay is phase / (2 pi f) when the phase is not wrapped.
