cgid.phasetools module¶
Library of array statistics routines.
-
cgid.phasetools.array_kuromoto_pgd(frame)[source]¶ A related directionality index ignores vector amplitude. Nice if there are large outliers.
-
cgid.phasetools.array_pgd_lower(frame)[source]¶ The magnitude of the average gradient provides a very accurate estimate of wavelength even in the presence of noise. However, it will understimate the phase gradient if the wave structure is not perfectly planar
-
cgid.phasetools.array_pgd_upper(frame)[source]¶ The average gradient magnitude can be inflated if there is noise but provides an upper bound on spatial frequency ( lower bound on wavelength ).
-
cgid.phasetools.array_synchrony_pgd(frame)[source]¶ The phase gradient directionality measure from Rubinto et al 2009 is abs(mean(pg))/mean(abs(pg))
-
cgid.phasetools.array_wavelength_lower(frame)[source]¶ phase gradients are in units of radians per electrode we would like units of mm per cycle there are 2pi radians per cycle there are 0.4mm per electrode phase gradient / 2 pi is in units of cycles per electrode electrode spacing / (phase gradient / 2 pi)
-
cgid.phasetools.array_wavelength_upper(frame)[source]¶ phase gradients are in units of radians per electrode we would like units of mm per cycle there are 2pi radians per cycle there are 0.4mm per electrode phase gradient / 2 pi is in units of cycles per electrode electrode spacing / (phase gradient / 2 pi)