Is there a way of implementing a 2D window like a kernel for calculating the statistics? At the moment it just seems to be along one axis. Thanks