Build a 2-dimensional checkerboard filter kernel for novelty detection.
This kernel is primarily used for detecting structural transitions along the
main diagonal of self-similarity and recurrence matrices (Foote’s method) [1].
A checkerboard kernel has positive values on the main diagonal quadrants
(representing coherent self-similarity within homogeneous sections) and
negative values on the off-diagonal quadrants (representing anti-coherence
or cross-similarity across section boundaries).
Parameters:
nint > 0
The length of the kernel along each dimension (produces an (n,n) matrix).
windowstr, tuple, number, callable, list-like, or None, default=None
Window function for tapering the kernel:
None (default) or "ones" or "boxcar": classic box checkerboard without tapering.
"gaussian": Gaussian tapering with standard deviation
var*(n-1)/2, matching libfmp[2].
Any other window specification supported by get_window (e.g. "hann",
("kaiser",4.0)).
varfloat > 0, default=0.5
Variance parameter when window="gaussian". Ignored for other windows.
normbool, float, or None, default=1
Normalization applied to the kernel:
1 or True: \(L_1\)-normalization (sum of absolute values equals 1).