View source: R/tools.data_to_hist.R
data_to_hist | R Documentation |
Just a function to transform two datasets into SparseHist, if X or Y (or the both) are already a SparseHist, update just the second
data_to_hist(X, Y)
X |
[matrix or SparseHist] |
Y |
[matrix or SparseHist] |
[list(muX,muY)] a list with the two SparseHist
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 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.