Learn R Programming

SBCK (version 1.0.0)

SchaakeShuffle: ShaakeShuffle class

Description

Perform the Schaake Shuffle

Arguments

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.

Details

as fit/predict mode

Examples

Run this code
X0 = matrix( stats::runif(20) , ncol = 2 )
Y0 = matrix( stats::runif(20) , ncol = 2 )
ss = SchaakeShuffle$new()
ss$fit(Y0)
Z0 = ss$predict(X0)

Run the code above in your browser using DataLab