X = base::cbind( stats::rnorm(2000) , stats::rexp(2000) )
Y = base::cbind( stats::rexp(2000) , stats::rnorm(2000) )
bw = base::c(0.1,0.1)
muX = SBCK::SparseHist( X , bw )
muY = SBCK::SparseHist( Y , bw )
## The four give the same result
SBCK::data_to_hist( X , Y )
SBCK::data_to_hist( muX , Y )
SBCK::data_to_hist( X , muY )
SBCK::data_to_hist( muX , muY )
Run the code above in your browser using DataLab