Rank: 31 based on 736 downloads (last 30 days) and 43 files submitted
photo

Bruno Luong

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Bruno View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
29 Apr 2013 Min/Max selection Search for k smallest or largest elements in the array Author: Bruno Luong min, sorting, max, partial sort, quicksort, selection 64 33
  • 4.69231
4.7 | 13 ratings
23 Apr 2013 Interval merging Merging intervals in the bracket form Author: Bruno Luong interval, merging, timestamps, brackets 8 4
  • 4.0
4.0 | 1 rating
16 Apr 2013 Sparse matrix convolution Convolution of sparse matrices Author: Bruno Luong sparse, convolution 9 0
01 Apr 2013 Screenshot Voronoi Sphere Compute voronoi's diagram of points on the 2-sphere Author: Bruno Luong voronoi, delaunay, sphere 10 0
  • 5.0
5.0 | 1 rating
18 Jul 2012 InplaceArray: a semi-pointer package for Matlab Manipulate (multi-dimensional) arrays in the in-place form Author: Bruno Luong inplace, pointers, copyonwrite, data shared 7 9
  • 5.0
5.0 | 2 ratings
Comments and Ratings by Bruno View all
Updated File Comments Rating
30 Jun 2013 N-dimensional histogram Compute n-dimensional histogram Author: Bruno Luong

To Dave, see my comment in May 2009. This is how it supposes to work.

24 May 2013 CStr2String Fast concatenation of cell strings to a string as C-Mex Author: Jan Simon

MATLAB cell concatenation is extremely slow. Jan's FEX is a must for those who care about speed.

16 May 2013 FFT-based convolution Discrete convolution using FFT method Author: Bruno Luong

Petr, I just test with 2012a, the recommendation stands.

26 Apr 2013 Min/Max selection Search for k smallest or largest elements in the array Author: Bruno Luong

Rui,
The error is in line #544 (look at the error message). Try to replace the C++ comment style
// in case the positive set is unordered
by C comment style
/* in case the positive set is unordered */

23 Apr 2013 Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier

Good coding, fast

Comments and Ratings on Bruno's Files View all
Updated File Comment by Comments Rating
30 Jun 2013 N-dimensional histogram Compute n-dimensional histogram Author: Bruno Luong Luong, Bruno

To Dave, see my comment in May 2009. This is how it supposes to work.

25 Jun 2013 N-dimensional histogram Compute n-dimensional histogram Author: Bruno Luong DaveD

This is a very useful piece of code, but it returns extra dimensions if any of your points fall along an outer edge.

28 May 2013 Truncated Gaussian Generate a pseudo-random vector X drawn from the truncated Gaussian distribution Author: Bruno Luong Alex

Dear Bruno,

Thanks for sharing this. I noticed that your code uses numerical methods to estimate the effective mean and std of the truncated random variable. Closed-form expressions for these quantities are given by Barr & Sherrill (1999, American Statistician, 53, 357-361), "Mean and Variance of Truncated Normal Distributions." The PDF is available for download from JSTOR: http://www.jstor.org/stable/2686057 I cannot upload the PDF here but will be happy to email it to you if you don't have access to JSTOR. The closed-form solution for the effective variance depends on the ch2cdf function in the Statistics Toolbox.
Another relevant paper is Babu & Mathew (2009, Statistics and Probability Letters, 79, 375-380) "Confidence intervals for limited moments and truncated moments in normal and lognormal moments."
Thanks again for sharing.
-- Alex Petrov
http://alexpetrov.com

24 May 2013 Min/Max selection Search for k smallest or largest elements in the array Author: Bruno Luong Xiong, Yuanjun

Great function!

21 May 2013 FFT-based convolution Discrete convolution using FFT method Author: Bruno Luong Petr

Bruno, sorry, I forgot to mention that I used 2012b. Moreover, speed difference might depend on inputs and I'm lucky with the inputs I use?

Top Tags Applied by Bruno
array, geometry, matrix, linear algebra, permutation
Files Tagged by Bruno View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
29 Apr 2013 Min/Max selection Search for k smallest or largest elements in the array Author: Bruno Luong min, sorting, max, partial sort, quicksort, selection 64 33
  • 4.69231
4.7 | 13 ratings
23 Apr 2013 Interval merging Merging intervals in the bracket form Author: Bruno Luong interval, merging, timestamps, brackets 8 4
  • 4.0
4.0 | 1 rating
16 Apr 2013 Sparse matrix convolution Convolution of sparse matrices Author: Bruno Luong sparse, convolution 9 0
01 Apr 2013 Screenshot Voronoi Sphere Compute voronoi's diagram of points on the 2-sphere Author: Bruno Luong voronoi, delaunay, sphere 10 0
  • 5.0
5.0 | 1 rating
18 Jul 2012 InplaceArray: a semi-pointer package for Matlab Manipulate (multi-dimensional) arrays in the in-place form Author: Bruno Luong inplace, pointers, copyonwrite, data shared 7 9
  • 5.0
5.0 | 2 ratings

Contact us