Crandore Hub

sdf.test

Nonparametric Two Sample Test for Equality of Spectral Densities

Nonparametric method for testing the equality of the spectral densities of two time series of possibly different lengths. The time series are preprocessed with the discrete cosine transform and the variance stabilising transform to obtain an approximate Gaussian regression setting for the log-spectral density function. The test statistic is based on the squared L2 norm of the difference between the estimated log-spectral densities. The test returns the result, the statistic value, and the p-value. It also provides the estimated empirical quantile and null distribution under the hypothesis of equal spectral densities. An example using EEG data is included. For details see Nadin, Krivobokova, Enikeeva (2026), <doi:10.48550/arXiv.2602.10774>.

Versions across snapshots

VersionRepositoryFileSize
0.0.1.0 rolling linux/jammy R-4.5 sdf.test_0.0.1.0.tar.gz 312.3 KiB
0.0.1.0 rolling linux/noble R-4.5 sdf.test_0.0.1.0.tar.gz 312.3 KiB
0.0.1.0 rolling source/ R- sdf.test_0.0.1.0.tar.gz 281.3 KiB
0.0.1.0 latest linux/jammy R-4.5 sdf.test_0.0.1.0.tar.gz 312.3 KiB
0.0.1.0 latest linux/noble R-4.5 sdf.test_0.0.1.0.tar.gz 312.3 KiB
0.0.1.0 latest source/ R- sdf.test_0.0.1.0.tar.gz 281.3 KiB
0.0.1.0 2026-04-26 source/ R- sdf.test_0.0.1.0.tar.gz 281.3 KiB
0.0.1.0 2026-04-23 source/ R- sdf.test_0.0.1.0.tar.gz 281.3 KiB
0.0.1.0 2026-04-09 windows/windows R-4.5 sdf.test_0.0.1.0.zip 315.3 KiB

Dependencies (latest)

Imports

Suggests