The SUMO toolbox  2018a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
selectTestSet.m File Reference


function selectTestSet (var samples, var testSet, var n, var type, var invalidCandidates)
 Add n test samples from a given sample set to an existing test set (may be empty). More...

Detailed Description

SUMO Lab Team
Copyright 2006-2018

This file is part of the Surrogate Modeling Toolbox ("SUMO Toolbox") and you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation. With the additional provision that a commercial license must be purchased if the SUMO Toolbox is used, modified, or extended in a commercial setting. For details see the included LICENSE.txt file. When referring to the SUMO Toolbox please make reference to the corresponding publication:

Contact : - Signature [testSet, lastAdded] = selectTestSet(samples, testSet, n, type, invalidCandidates)

Function Documentation

function selectTestSet ( var  samples,
var  testSet,
var  n,
var  type,
var  invalidCandidates 

Add n test samples from a given sample set to an existing test set (may be empty).

testSet is a vector of indices in the array samples resembling the samples that are already in the set. Type is one of 'random' or 'distance/uniform'. invalidCandidates is an optional parameter which contains the indices that resemble invalid candidates for adding in the list. These samples are ignored as possible candidates for adding. Defaults to the empty vector (all samples are allowed as candidates except for the ones already in the test set).