Skip to main content

Sample Collection

Synopsis​

A collection is a list of items. This operator allows you to take a collection and sample it to a given sample size.

Description​

The operator provides 3 different sampling methods (see parameter description) to perform the sampling. The parameter sample_size describes the number of items in the sampled output collection.

Input​

exa​

The collection which should be sampled.

Output​

col​

The sampled collection.

org​

The original collection.

Parameters​

Sampling method​

The method to use for sampling.

  • linear sampling: Take the first n objects of the collection.
  • shuffled sampling: Take n unique, but random objects of the collection.
  • bootstrap sampling: Take n random objects of the collection. Objects are allowed to be taken several times.

Sample size​

The number of objects to be drawn.

Use local random seed​

This parameter indicates if a local random seed should be used.

Local random seed​

If the use local random seed parameter is checked this parameter determines the local random seed.

See Also​