sFFLHD (version 0.1.2)

sFFLHD_Lflex: sFFLHD with flexible L

Description

R6 object that gives uses a sFFLHD with L near the requested one, but gives them back in the requested L

Usage

sFFLHD_Lflex

Arguments

Value

A sFFLHD_Lflex object

Format

An object of class R6ClassGenerator of length 24.

Fields

D

numeric. The number of dimensions for the design. Must be set.

L

numeric. The number of points in each batch, also the number of levels of each dimension. Must be set.

b

integer. The batch number.

s

sFFLHD. The design it takes the points and then reorders them.

X

matrix. The points given in the design.

X_choices

matrix. Points taken from s and have been reordered, but which have not been returned to the user yet.

Examples

Run this code
# NOT RUN {
s <- sFFLHD_Lflex$new(D=8,L=4)
s$get.batch()
# sFFLHD(D=7,L=10)$get.batch() doesn't work, needs L=7,8,9,11
s <- sFFLHD_Lflex$new(D=7,L=10) # Uses L=9
s$get.batch()
s <- sFFLHD_Lflex$new(D=7,L=10, prefer_L="up") # Should use 11
# }

Run the code above in your browser using DataLab