| SchaakeShuffleRef | R Documentation | 
Match the rank structure of X with them of Y by reordering X.
Fix one features to keep the structure of X.
SBCK::SchaakeShuffle -> SchaakeShuffleRef
ref[integer] Reference
new()Create a new ShaakeShuffleRef object.
SchaakeShuffleRef$new(ref, Y0 = NULL)
ref[integer] Reference
Y0[vector] The reference vector
A new 'ShaaleShuffleRef' object.
fit()Fit the model
SchaakeShuffleRef$fit(Y0)
Y0[vector] The reference vector
NULL
predict()Fit the model
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)
deepWhether to make a deep clone.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.