SchaakeShuffle | R Documentation |
Perform the Schaake Shuffle
as fit/predict mode
new()
Create a new ShaakeShuffle object.
SchaakeShuffle$new(Y0 = NULL)
Y0
[vector] The reference vector
A new 'ShaaleShuffle' object.
fit()
Fit the model
SchaakeShuffle$fit(Y0)
Y0
[vector] The reference vector
NULL
predict()
Fit the model
SchaakeShuffle$predict(X0)
X0
[vector] The vector to apply shuffle
Z0 [vector] data shuffled
clone()
The objects of this class are cloneable with this method.
SchaakeShuffle$clone(deep = FALSE)
deep
Whether to make a deep clone.
X0 = matrix( stats::runif(20) , ncol = 2 )
Y0 = matrix( stats::runif(20) , ncol = 2 )
ss = SchaakeShuffle$new()
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.