Learn R Programming

aclhs (version 1.0.1)

Autocorrelated Conditioned Latin Hypercube Sampling

Description

Implementation of the autocorrelated conditioned Latin Hypercube Sampling (acLHS) algorithm for 1D (time-series) and 2D (spatial) data. The acLHS algorithm is an extension of the conditioned Latin Hypercube Sampling (cLHS) algorithm that allows sampled data to have similar correlative and statistical features of the original data. Only a properly formatted dataframe needs to be provided to yield subsample indices from the primary function. For more details about the cLHS algorithm, see Minasny and McBratney (2006), . For acLHS, see Le and Vargas (2024) .

Copy Link

Version

Install

install.packages('aclhs')

Monthly Downloads

147

Version

1.0.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Gabriel Laboy

Last Published

November 5th, 2025

Functions in aclhs (1.0.1)

aclhs.plot_variogram_comparison

Plot the Variogram comparison of the acLHS subsamples.
aclhs

Get subsample indices using the acLHS algorithm.
aclhs.plot_params

Set parameters for plotting.
aclhs.vario_params

Set parameters for computing a Variogram.
aclhs.plot_sampling_distribution

Plots the acLHS samples distribution.
aclhs.plot_univariate_pdf

Plot the univariate PDF for a column of acLHS-derived samples.
aclhs.plot_scatterplot

Plot the scatterplot of the acLHS subsamples.
ex_data_1D

Daily CO2 Efflux Measurements within a Temperate Forest
aclhs.get_correlations

Computes correlations between the original and aclhs-sampled data.
score_samples

Computes a score from three objective functions.
ex_data_2D

Spatial Distribution of Soil CO2 Efflux for CONUS