Package: lhs 1.4.0

lhs: Latin Hypercube Samples

Provides a number of methods for creating and augmenting Latin Hypercube Samples and Orthogonal Array Latin Hypercube Samples, including sliced and nested Latin Hypercube designs.

Authors:Rob Carnell [aut, cre]

lhs_1.4.0.tar.gz
lhs_1.4.0.zip(r-4.7)lhs_1.4.0.zip(r-4.6)lhs_1.4.0.zip(r-4.5)
lhs_1.4.0.tgz(r-4.6-x86_64)lhs_1.4.0.tgz(r-4.6-arm64)lhs_1.4.0.tgz(r-4.5-x86_64)lhs_1.4.0.tgz(r-4.5-arm64)
lhs_1.4.0.tar.gz(r-4.7-arm64)lhs_1.4.0.tar.gz(r-4.7-x86_64)lhs_1.4.0.tar.gz(r-4.6-arm64)lhs_1.4.0.tar.gz(r-4.6-x86_64)
lhs_1.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
lhs/json (API)

# Install 'lhs' in R:
install.packages('lhs', repos = c('https://bertcarnell.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/bertcarnell/lhs/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

latin-hypercubelatin-hypercube-samplelatin-hypercube-samplinglhsorthogonal-arrayscpp

13.69 score 51 stars 86 packages 2.0k scripts 18k downloads 23 mentions 30 exports 1 dependencies

Last updated from:b5879a675b. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK184
linux-devel-x86_64OK177
source / vignettesOK276
linux-release-arm64OK207
linux-release-x86_64OK217
macos-release-arm64OK124
macos-release-x86_64OK294
macos-oldrel-arm64OK152
macos-oldrel-x86_64OK279
windows-develOK184
windows-releaseOK172
windows-oldrelOK157
wasm-releaseOK177

Exports:augmentLHScorrelatedLHScreate_galois_fieldcreate_oalhscreateAddelKempcreateAddelKemp3createAddelKempNcreateBosecreateBoseBushcreateBoseBushlcreateBushcreateBushtgeneticLHSget_library_versionsimprovedLHSmaximinLHSnestedLHSoa_to_oalhsoptAugmentLHSoptimumLHSoptSeededLHSpoly_prodpoly_sumpoly2intqdirichletqfactorqintegerrandomLHSrunifintslicedLHS

Dependencies:Rcpp

Examples of Correlated and Multivariate Latin hypercubes
Example 1: Simple Correlation | Example 2: Dirichlet distribution | Method 1: correlatedLHS | Method 2: q_dirichlet | Example 3: Rejection Sample

Last update: 2024-06-22
Started: 2024-05-05

Latin Hypercube Samples - Questions
Question 1 | Answer | Question 2 | Question 3 | Question 5 | Question 6

Last update: 2024-06-22
Started: 2019-01-18

Basic Latin hypercube samples and designs with package lhs
Theory of Latin Hypercube Sampling | Create a Simple LHS | Optimizing the Design | Method | Min Distance btwn pts | Mean Distance btwn pts | Max Correlation btwn pts:-----|:-----:|:-----:|:-----:randomLHS | r min(dist(A)) | r mean(dist(A)) | r max(abs(cor(A)-diag(10)))optimumLHS | r min(dist(A1)) | r mean(dist(A1)) | r max(abs(cor(A1)-diag(10)))maximinLHS | r min(dist(A2)) | r mean(dist(A2)) | r max(abs(cor(A2)-diag(10)))improvedLHS | r min(dist(A3)) | r mean(dist(A3)) | r max(abs(cor(A3)-diag(10)))geneticLHS (S) | r min(dist(A4)) | r mean(dist(A4)) | r max(abs(cor(A4)-diag(10)))geneticLHS (Maximin) | r min(dist(A5)) | r mean(dist(A5)) | r max(abs(cor(A5)-diag(10)))

Last update: 2022-02-20
Started: 2019-01-13

An Example of Augmenting a Latin Hypercube

Last update: 2019-01-13
Started: 2019-01-13

Readme and manuals

Help Manual

Help pageTopics
Augment a Latin Hypercube DesignaugmentLHS
Transformed Latin hypercube with a multivariate distributioncorrelatedLHS
Create a Galois fieldcreate_galois_field
Create an orthogonal array Latin hypercubecreate_oalhs
Create an orthogonal array using the Addelman-Kempthorne algorithm.createAddelKemp
Create an orthogonal array using the Addelman-Kempthorne algorithm with '2q^3' rows.createAddelKemp3
Create an orthogonal array using the Addelman-Kempthorne algorithm with alternate strength with '2q^n' rows.createAddelKempN
Create an orthogonal array using the Bose algorithm.createBose
Create an orthogonal array using the Bose-Bush algorithm.createBoseBush
Create an orthogonal array using the Bose-Bush algorithm with alternate strength >= 3.createBoseBushl
Create an orthogonal array using the Bush algorithm.createBush
Create an orthogonal array using the Bush algorithm with alternate strength.createBusht
Latin Hypercube Sampling with a Genetic AlgorithmgeneticLHS
Get version information for all libraries in the lhs packageget_library_versions
Improved Latin Hypercube SampleimprovedLHS
Maximin Latin Hypercube SamplemaximinLHS
Construct a nested Latin hypercube designnestedLHS
Create a Latin hypercube from an orthogonal arrayoa_to_oalhs
Optimal Augmented Latin Hypercube SampleoptAugmentLHS
Optimum Latin Hypercube SampleoptimumLHS
Optimum Seeded Latin Hypercube SampleoptSeededLHS
Multiplication in polynomial representationpoly_prod
Addition in polynomial representationpoly_sum
Convert polynomial to integer in <code>0..q-1</code>poly2int
Quantile Transformationsqdirichlet qfactor qinteger
Construct a random Latin hypercube designrandomLHS
Create a Random Sample of Uniform Integersrunifint
Construct a sliced Latin hypercube designslicedLHS