data_to_hist {SBCK} | R Documentation |
data_to_hist
Description
Just a function to transform two datasets into SparseHist, if X or Y (or the both) are already a SparseHist, update just the second
Usage
data_to_hist(X, Y)
Arguments
X |
[matrix or SparseHist] |
Y |
[matrix or SparseHist] |
Value
[list(muX,muY)] a list with the two SparseHist
Examples
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 )
[Package SBCK version 1.0.0 Index]