DP.initialSample {DSAM}R Documentation

Initial sampling of DUPLEX

Description

Built-in function: The initial sampling function of DUPLEX algorithm, aimed to obtain the two data points with the farthest Euclidean distance from the original data set and assign them to the corresponding sampling subset.

Usage

DP.initialSample(split.info, choice)

Arguments

split.info

A list containing relevant sampling information such as the original dataset and three sample subsets.

choice

The variable must be one name of the three sample subsets contained in split.info, according to which the function assigns the current two data points to the specific sampling subset.

Value

Return the training, test and validation subsets. If the original data are required to be split into two subsets, the training and test subsets can be combined into a single calibration subset.


[Package DSAM version 1.0.2 Index]