I am new beginner of UQLabs. I have a basic error for declaring the input into UQLabs.
For example, my code is below:
InputOpts.Marginals(2).Name = ‘Alpha0’;
InputOpts.Marginals(2).Type = ‘Beta’;
InputOpts.Marginals(2).Moments = [0.05 0.01 0.025 0.1];
The data for Moments respectively are mean, standard deviation, and support [a,b].
But Uqlabs find it as an error, as below:
For Beta distribution, both parameters have to be positive!
Error in uq_beta_PtoM (line 16)
error(‘For Beta distribution, both parameters have to be positive!’)
Error in uq_MarginalFields (line 79)
marginals(ii).Moments = PtoMfun(marginals(ii).Parameters);
Error in uq_initialize_uq_default_input (line 134)
marginals = uq_MarginalFields(marginals);
Because this is a very basic step, and I have followed the manuals of importing Beta variance, so I am confused to find the solutions. I have thought about that if I need to calculate two parameters r,s instead of using mean and standards. But I would like to clarify this issue by asking the community first.
Thank you for your support.
I am looking forward to receiving your responses.