# improvedLHS

From lhs v1.0.1
0th

Percentile

##### Improved Latin Hypercube Sample

Draws a Latin Hypercube Sample from a set of uniform distributions for use in creating a Latin Hypercube Design. This function attempts to optimize the sample with respect to an optimum euclidean distance between design points.

Keywords
design
##### Usage
improvedLHS(n, k, dup = 1)
##### Arguments
n

The number of partitions (simulations or design points or rows)

k

The number of replications (variables or columns)

dup

A factor that determines the number of candidate points used in the search. A multiple of the number of remaining points than can be added.

##### Details

Latin hypercube sampling (LHS) was developed to generate a distribution of collections of parameter values from a multidimensional distribution. A square grid containing possible sample points is a Latin square iff there is only one sample in each row and each column. A Latin hypercube is the generalisation of this concept to an arbitrary number of dimensions. When sampling a function of k variables, the range of each variable is divided into n equally probable intervals. n sample points are then drawn such that a Latin Hypercube is created. Latin Hypercube sampling generates more efficient estimates of desired parameters than simple Monte Carlo sampling.

This program generates a Latin Hypercube Sample by creating random permutations of the first n integers in each of k columns and then transforming those integers into n sections of a standard uniform distribution. Random values are then sampled from within each of the n sections. Once the sample is generated, the uniform sample from a column can be transformed to any distribution byusing the quantile functions, e.g. qnorm(). Different columns can have different distributions.

This function attempts to optimize the sample with respect to an optimum euclidean distance between design points. $$Optimum distance = frac{n}{n^{\frac{1.0}{k}}}$$

##### Value

An n by k Latin Hypercube Sample matrix with values uniformly distributed on [0,1]

##### References

Beachkofski, B., Grandhi, R. (2002) Improved Distributed Hypercube Sampling American Institute of Aeronautics and Astronautics Paper 1274.

This function is based on the MATLAB program written by John Burkardt and modified 16 Feb 2005 http://www.csit.fsu.edu/~burkardt/m_src/ihs/ihs.m

[randomLHS()], [geneticLHS()], [maximinLHS()], and [optimumLHS()] to generate Latin Hypercube Samples. [optAugmentLHS()], [optSeededLHS()], and [augmentLHS()] to modify and augment existing designs.

• improvedLHS
##### Examples
# NOT RUN {
set.seed(1234)
A <- improvedLHS(4, 3, 2)
# }

Documentation reproduced from package lhs, version 1.0.1, License: GPL-3

### Community examples

Looks like there are no examples yet.
{"ft_lang_label":"__label__en","ft_lang_prob":0.74972695,"math_prob":0.9822756,"size":2578,"snap":"2019-51-2020-05","text_gpt3_token_len":599,"char_repetition_ratio":0.13558663,"word_repetition_ratio":0.067885116,"special_character_ratio":0.2094647,"punctuation_ratio":0.10204082,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98941827,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-22T11:30:03Z\",\"WARC-Record-ID\":\"<urn:uuid:cebc701d-caaf-46ce-8f72-c28715aafe8d>\",\"Content-Length\":\"16360\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:814752d6-7402-4f81-b3bd-bc2316a46079>\",\"WARC-Concurrent-To\":\"<urn:uuid:d3c0f0ce-9cfc-4742-a0f2-45780cf8e87b>\",\"WARC-IP-Address\":\"3.226.88.111\",\"WARC-Target-URI\":\"https://www.rdocumentation.org/packages/lhs/versions/1.0.1/topics/improvedLHS\",\"WARC-Payload-Digest\":\"sha1:ZAMGFZSZT3R5GGTV4LWCX4G5BFIV4B5Y\",\"WARC-Block-Digest\":\"sha1:GMQVQAVSM2B2Z2HRSKW42QWGAE6GAJJJ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579250606975.49_warc_CC-MAIN-20200122101729-20200122130729-00125.warc.gz\"}"}