Rank: 1800 based on 63 downloads (last 30 days) and 6 files submitted
photo

Gianluca Dorini

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Gianluca View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 Nov 2008 Screenshot Dynamic Programming solver for The bridge crossing problem The bridge crossing problem is here modelled and solved as undiscounted Dynamic Programming problem. Author: Gianluca Dorini optimization, dynamic programming 8 1
  • 3.0
3.0 | 1 rating
16 Nov 2007 Screenshot Copernic Desktop Search functions for Matlab Two functions for submitting search queries to Copernic Desktop Search and retrieving results. Author: Gianluca Dorini external interface, copernic desktop sear... 11 0
04 Jun 2007 Screenshot Performing Pareto set membership tester for sets of points in K-dimensions This fast function takes as input a sets of points, and determines which ones are Pareto optimal Author: Gianluca Dorini optimization, pareto, pareto membership, multiobjective, multi 14 5
  • 4.33333
4.3 | 4 ratings
03 Apr 2007 Screenshot Performing random numbers generator from a generic discrete distribution This function extracts random numbers distributed over a discrete set; the PDF is user-defined Author: Gianluca Dorini statistics, probability, random numbers, discrete pdf 17 5
  • 4.5
4.5 | 2 ratings
01 Apr 2007 Screenshot Practical Monte Carlo Simulation Tool Monte Carlo Simulation for generic Matlab commands Author: Gianluca Dorini statistics, probability, monte carlo simulatio..., random process 9 3
  • 3.0
3.0 | 1 rating
Comments and Ratings on Gianluca's Files View all
Updated File Comment by Comments Rating
29 Nov 2010 Practical Monte Carlo Simulation Tool Monte Carlo Simulation for generic Matlab commands Author: Gianluca Dorini Farag, Ahmed

I got this message when i ran the file

Input argument "parameters" is undefined.

Error in ==> expressionMCS at 93
for i=1:size(parameters,1)

11 Nov 2009 Performing Pareto set membership tester for sets of points in K-dimensions This fast function takes as input a sets of points, and determines which ones are Pareto optimal Author: Gianluca Dorini Matteo

13 Oct 2009 Performing random numbers generator from a generic discrete distribution This function extracts random numbers distributed over a discrete set; the PDF is user-defined Author: Gianluca Dorini Dorion, Christian

Hi,
Thanks for sharing this file. I suggest you replace the hardcoded 32767 by RAND_MAX... Otherwise it works like a charm.

11 Sep 2009 Performing random numbers generator from a generic discrete distribution This function extracts random numbers distributed over a discrete set; the PDF is user-defined Author: Gianluca Dorini Pozzi, Francesco

I've tried this small experiment:

N = 100000; % sample size
w = 1:100; % quite steep distribution
w = w / sum(w); % distribution (pdf)
Y_std = sqrt(w .* (1 - w)); % Standard deviations associated to each probability

%%%%%%%%%%%%%%%%%

Y1 = randp(w, N, 1); % Try Jos function
Y1_w = histc(Y1, [1:100]); % absolute frequencies table
Y1_w = Y1_w / N; % transform into relative frequencies
Y1_w_std = sqrt(Y1_w .* (1 - Y1_w)); % Empirical standard deviations associated to each probability

%%%%%%%%%%%%%%%%%

Y2 = gDiscrPdfRnd(w, N, 1); % Try Gianluca Dorini's function
Y2_w = histc(Y2, [1:100]); % absolute frequencies table
Y2_w = Y2_w / N; % transform into relative frequencies
Y2_w_std = sqrt(Y2_w .* (1 - Y2_w)); % Empirical standard deviations associated to each probability

%%%%%%%%%%%%%%%%%

% Check if empirical standard deviations are coherent with theretical ones
plot(Y_std - Y1_w_std', '.b') % plot empirical differences for Jos function
hold on
plot(Y_std - Y2_w_std', '.r') % plot empirical differences for Gianluca Dorini's function

%%%%%%%%%%%%%%%%%

It looks as though both functions statistically behave very well. They are both excellent functions. Thank you.

30 Mar 2009 hypersphere n-dimensional hypersphere in parametric coordinates. Author: Gianluca Dorini MathMoose

Contact us