powered by
Match the rank structure of X with them of Y by reordering X.
SBCK::SchaakeShuffle -> SchaakeShuffleRef
SBCK::SchaakeShuffle
SchaakeShuffleRef
ref
[integer] Reference
SchaakeShuffleRef$new()
SchaakeShuffleRef$fit()
SchaakeShuffleRef$predict()
SchaakeShuffleRef$clone()
new()
Create a new ShaakeShuffleRef object.
SchaakeShuffleRef$new(ref, Y0 = NULL)
Y0
[vector] The reference vector
A new `ShaaleShuffleRef` object.
fit()
Fit the model
SchaakeShuffleRef$fit(Y0)
NULL
predict()
SchaakeShuffleRef$predict(X0)
X0
[vector] The vector to apply shuffle
Z0 [vector] data shuffled
clone()
The objects of this class are cloneable with this method.
SchaakeShuffleRef$clone(deep = FALSE)
deep
Whether to make a deep clone.
Fix one features to keep the structure of X.
X0 = matrix( stats::runif(20) , ncol = 2 ) Y0 = matrix( stats::runif(20) , ncol = 2 ) ss = SchaakeShuffleRef$new( ref = 1 ) ss$fit(Y0) Z0 = ss$predict(X0)
Run the code above in your browser using DataLab