hypercuber: a wrapper for the lhs package

View source: R/hypercuber.R

hypercuberR Documentation

a wrapper for the lhs package

Description

facilitates the generation of Latin hypercubes, graphs the results, and returns the results in a dataframe

Usage

hypercuber(
  mygraphname = NULL,
  myseed = 12345L,
  myn = 99,
  myk = 9,
  myalgorithm = "randomLHS",
  mymaxsweeps = "NA",
  myeps = "NA",
  mydup = "NA",
  mypop = "NA",
  mygen = "NA",
  mypmut = "NA",
  mycriterium = "NA",
  mygraphsize = 1000,
  mypch = 19,
  mycol = "blue",
  mycex = 0.5
)

Arguments

myseed

the random number seed to be used

myn

the number of draws

myk

the number of variables

myalgorithm

the optimisation algorithm to be used: "randomLHS", "optimumLHS", "maximinLHS", "improvedLHS", or "geneticLHS".

myname

is the name to be used to name output files

Details

based on the examples in the lhs help documentation

Examples

mytest1 <- hypercuber(mygraphname = "mytest1", myn=10, myk=5, myalgorithm = "randomLHS")
mytest1

mytest2 <- hypercuber(mygraphname = "mytest2", myn=10, myk=5, myalgorithm = "optimumLHS", mymaxsweeps = 4, myeps = 0.01)
mytest2

mytest3 <- hypercuber(mygraphname = "mytest3", myn=10, myk=5, myalgorithm = "maximinLHS", mydup = 5)
mytest3

mytest4 <- hypercuber(mygraphname = "mytest4", myn=10, myk=5, myalgorithm = "improvedLHS", mydup = 5)
mytest4

mytest5 <- hypercuber(mygraphname = "mytest5", myn=10, myk=5, myalgorithm = "geneticLHS", mypop = 1000, mygen = 8, mypmut = 0.1, mycriterium = "S")
mytest5

mytest6 <- hypercuber(mygraphname = "mytest6", myn=10, myk=5, myalgorithm = "geneticLHS", mypop = 1000, mygen = 8, mypmut = 0.1, mycriterium = "Maximin")
mytest6


alexmitrani/humblr documentation built on April 4, 2022, 8:29 a.m.