Sampling strategies

Hi,
I am not sure I quite fully understand the sampling strategies techniques. Especially the range of x-axis and y-axis that I obtained from my model. it is not always that the sampling should be showing that the samplings are extracted from values (0 to 1) ? Below is my figure from running all 4 sampling strategies.
image

Thanks for your input!
B,;
Visha

Dear @Vishashalu

Can you share the code you used to generate the figures? I assume you are already plotting the transformed input (from the unit interval to your actual distribution).

Best regards
Styfen

clearvars
uqlab
rng(100, 'twister')
ModelOpts.mFile = 'uq_Abs';
myModel = uq_createModel(ModelOpts);
InputOpts.Marginals(1).Name = 'dens'; 
InputOpts.Marginals(1).Type = 'Gaussian';
InputOpts.Marginals(1).Moments = [1  0.043];
InputOpts.Marginals(2).Name = 'surfT'; 
InputOpts.Marginals(2).Type = 'Gaussian';
InputOpts.Marginals(2).Moments = [1   0.025];
myInput = uq_createInput(InputOpts);

X_MC = uq_getSample(100,'MC');
uq_figure
uq_plot(X_MC(:,1), X_MC(:,2), '.', 'MarkerSize', 15)
xlabel('$\mathrm{Density}$')
ylabel('$\mathrm{Surface tension}$')
% 
X_LHS = uq_getSample(100, 'LHS');
uq_figure
uq_plot(X_LHS(:,1), X_LHS(:,2), '.', 'MarkerSize', 15)
xlabel('$\mathrm{X_1}$')
ylabel('$\mathrm{X_2}$')
% 
X_Sobol = uq_getSample(100,'Sobol');
uq_figure
uq_plot(X_Sobol(:,1), X_Sobol(:,2), '.', 'MarkerSize', 15)
xlabel('$\mathrm{X_1}$')
ylabel('$\mathrm{X_2}$')
% 
X_Halton = uq_getSample(100,'Halton');
uq_figure
uq_plot(X_Halton(:,1), X_Halton(:,2), '.', 'MarkerSize', 15)
xlabel('$\mathrm{X_1}$')
ylabel('$\mathrm{X_2}$')
uq_figure

subplot(2, 2, 1)
uq_plot(X_MC(:,1), X_MC(:,2), '.', 'MarkerSize', 15)
title('MCS')
ylabel('$\mathrm{Surface Tension}$')

subplot(2, 2, 2)
uq_plot(X_LHS(:,1), X_LHS(:,2), '.', 'MarkerSize', 15)
title('LHS')

subplot(2, 2, 3)
uq_plot(X_Sobol(:,1), X_Sobol(:,2), '.', 'MarkerSize', 15)
title('Sobol''')
xlabel('$\mathrm{Density}$')
ylabel('$\mathrm{Surface Tension}$')

subplot(2, 2, 4)
uq_plot(X_Halton(:,1), X_Halton(:,2), '.', 'MarkerSize', 15)
title('Halton')
xlabel('$\mathrm{Density}$')

Hi Styfen,
I think there is some formatting issue here, but I hope you can understand the code on how I input for the sampling strategies?
I will appreciate your input for this.
BR,
Visha

Dear @Vishashalu

I fixed the formatting issue.

uq_getSample will indeed return you the samples according to the distribution defined. You can read more about this function and related ones here:

Best regards
Styfen