SchaakeShuffle {SBCK} | R Documentation |
ShaakeShuffle class
Description
Perform the Schaake Shuffle
Details
as fit/predict mode
Methods
Public methods
Method new()
Create a new ShaakeShuffle object.
Usage
SchaakeShuffle$new(Y0 = NULL)
Arguments
Y0
[vector] The reference vector
Returns
A new 'ShaaleShuffle' object.
Method fit()
Fit the model
Usage
SchaakeShuffle$fit(Y0)
Arguments
Y0
[vector] The reference vector
Returns
NULL
Method predict()
Fit the model
Usage
SchaakeShuffle$predict(X0)
Arguments
X0
[vector] The vector to apply shuffle
Returns
Z0 [vector] data shuffled
Method clone()
The objects of this class are cloneable with this method.
Usage
SchaakeShuffle$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
Examples
X0 = matrix( stats::runif(20) , ncol = 2 )
Y0 = matrix( stats::runif(20) , ncol = 2 )
ss = SchaakeShuffle$new()
ss$fit(Y0)
Z0 = ss$predict(X0)
[Package SBCK version 1.0.0 Index]