rcatool.stats.convolve.kernel_gen
- rcatool.stats.convolve.kernel_gen(n, ktype='square', kfun='mean')[source]
Function to create a kernel, i.e. a moving window (box or disk) with side/radius equal to ‘n’.
- Parameters:
n (int) – Side/radius of square/disk of smoothening window.
ktype (string) – The type of box; ‘square’ (default) or ‘disk’.
kfun (string) – The function ‘kfun’ applied to each sub-sample within the moving window. Either ‘mean’ (default) or ‘sum’.