Gaussian-kernel 2-D density on a regular grid, matching
MASS::kde2d (same normal-reference bandwidth and the h/4
scaling MASS applies).
Examples
if (requireNamespace("MASS", quietly = TRUE)) {
set.seed(2)
x <- rnorm(80); y <- rnorm(80)
k <- morie_kde2d(x, y, n = 20)
dim(k$z)
}
#> [1] 20 20
