Samplers

Usage

We have to give initialize each sampler with a DesignSpace:

ran = f3dasm.sampling.RandomUniformSampling(doe=design)

Then we can evoke sampling by calling the get_samples() method:

N = 100 # Number of samples
data_ran = ran.get_samples(numsamples=N)

This will return a Data object filled with the requested samples.

Implement your own sampler

Implemented samplers

The following implementations of samplers can found under the f3dasm.sampling module:

Name

Docs of the Python class

Reference

Random Uniform sampling

f3dasm.sampling.samplers.RandomUniformSampling

numpy.random.uniform

Latin Hypercube sampling

f3dasm.sampling.samplers.LatinHypercubeSampling

SALib.latin

Sobol Sequence sampling

f3dasm.sampling.samplers.SobolSequenceSampling

SALib.sobol_sequence