Description Usage Arguments Value References
Function to determine the optimal number of spectra to be sent to the laboratory for soil analysis. This function works by comparing the probability density function (pdf) of the population and the pdf of the sample set in order to asses the representativeness of the sample. The two pdfs are compared based on the mean euclidean distance (msd). See Ramirez-Lopez, et al. (2014) for more details.
1 |
S |
A matrix of the scores of the principal components. |
k |
A vector containing the sample set sizes to be evaluated. |
method |
The sampling algorithm. Options are: (i) |
repetitions |
The number of times that the sampling must be carried out for each sample size to be evaluated. The results of the final msd is the average of the ones obtained at each iteration. Note that since the |
n |
The number of equally spaced points at which the probability densities are to be estimated (see |
from, to |
A vector of the left and right-most points of the grid at which the densities are to be estimated. Default is the minimums and maximums of the variables in |
bw |
A vector containing the the smoothing bandwidth to be use for the probability densities (see |
... |
Arguments to be passed to the calibration sampling algorithms, i.e. additional aruments to be used for the |
A table with the following columns:
css |
The sample size (k). |
msd |
Value of the msd for each sample size. |
msd_sd |
The standard deviation of the msd for all the repetitions (does not apply to |
Ramirez-Lopez, L., Schmidt, K., Behrens, T., van Wesemael, B., Dematte, J. A., Scholten, T. (2014). Sampling optimal calibration sets in soil infrared spectroscopy. Geoderma, 226, 140-150.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.