trinitynawer.blogg.se

Latin hypercube sampling with weight
Latin hypercube sampling with weight






A conditioned Latin hypercube methodįor sampling in the presence of ancillary information. The Metropolis-Hastings iterations (if available). Objective function throughout the Metropolis-Hastings iterations.Ī vector giving the evolution of the cost function throughout Vector giving the indices of the chosen samples. * If the simple option is set to FALSE: An object of classĬLHS_result, with the following elements: index_samples Numeric vector containing the indices of the selected samples is returned * If the simple option is set to TRUE (default behaviour): A The b parameter, users can defined their own eta matrix so that theyĬan give more complex probability design of sampling each strata of theĭistribution instead of just be able to give more importance to both edges of Probability b times higher to be sampled. , 1, b) in order to give the edge of the distribution a The final sample and K the number of continuous variables) is defined, toĬompute the objective function of the algorithm, where each column equal the A matrix eta (size N x K, where N is the size of Defaults to FALSE.įor the DLHS method, the original paper defines parameter b as the importance

latin hypercube sampling with weight

Logical, if TRUE the spatial coordinates of supported spatial objects (either a 'SpatialPointsDataFrame' object if using 'sp', or a 'sf' object if using 'sf') are included in the Latin hypercube calculations. Process will not be constrained by this attribute. However, this method will only track the cost - the sampling Of the attribute in x that gives a cost associated with each If set to FALSE, aĬLHS_result object is returned (takes more memory but allows to make use ofĬLHS_results methods such as plot.cLHS_result).Ī character giving the name or an integer giving the index Selected samples are returned, as a numeric vector. The duration (number of iterations) of the The minimal value at which the optimisation is stopped. Defaults to 0.95.Ī list a length 3, giving the relative weights forĬontinuous data, categorical data, and correlation between variables.ĭefaults to list(numeric = 1, factor = 1, correlation = 1).Įither a number equal 1 to perform a classic cLHS or a constrainedĬLHS or a matrix to perform a cLHS that samples more on the edge of the Temperature decreases in the simulated annealing process. The initial temperature at which the simulated annealingĪ number between 0 and 1, giving the rate at which This is ~ 150 times faster than the R version, but is less stable and currentlyĭoesn't accept track or obj.limit parameters. If set to TRUE, annealing process uses C++ code.

latin hypercube sampling with weight

If NULL (default), the cost-constrained implementation is notĪ positive number, giving the number of iterations for the The attribute in x that gives a cost that can be use to constrain theĬLHS sampling. The option is only available in theĬ++ version if use.cpp = FALSE, this parameter will be ignored.Ī character giving the name or an integer giving the index of The algorithm will use all of x as the referenceĭistribution, but will only select samples from possible.sample.

#Latin hypercube sampling with weight plus#

Size of mandatory samples given by must.include plus the size of the randomlyĪ numeric vector giving indices of the rows from x

latin hypercube sampling with weight

If must.include is not NULL,Īrgument size must include the total size of the final sample i.e. If NULL (default), all data are randomlyĬhosen according to the classic cLHS method. For the cost-constrained cLHS method, cost of )Ī ame, SpatialPointsDataFrame, sf, or RasterĪ non-negative integer giving the total number of items to selectĪ numeric vector giving the indices of the rows from x that must be Clhs ( x, size, must.include, can.include, cost, iter, use.cpp, temp, tdecrease, weights, eta, obj.limit, length.cycle, simple, progress, track, use.coords.






Latin hypercube sampling with weight