Rank: 3966 based on 11 downloads (last 30 days) and 1 file submitted
photo

Xavier Xavier

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Xavier
Updated   File Tags Downloads
(last 30 days)
Comments Rating
30 May 2012 Screenshot Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier interval, intersection 11 9
  • 5.0
5.0 | 4 ratings
Comments and Ratings by Xavier View all
Updated File Comments Rating
28 Jun 2012 Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier

Yes, I wanted a fast code so the input should be correct. I don't check neither that AB are sorted in ascending order.

30 May 2012 Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier

The file has been modified to remove the bug. Now I make sure that 'first' is ahead 'second'.

08 Jul 2011 Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier

Yes you are right, I modified the comments

Thx

10 Jun 2011 Interval merging Merging intervals in the bracket form Author: Bruno Luong

The method describe above is working really well but is time consuming.

I submitted a faster method here
http://www.mathworks.com/matlabcentral/fileexchange/31753

21 Oct 2010 RANDRAW Efficient Random Variates Generator (from over 50 distributions). Author: Alex Bar-Guy

Comments and Ratings on Xavier's Files View all
Updated File Comment by Comments Rating
23 Apr 2013 Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier Luong, Bruno

Good coding, fast

20 Feb 2013 Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier Per

Really useful for me.

28 Jun 2012 Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier Xavier, Xavier

Yes, I wanted a fast code so the input should be correct. I don't check neither that AB are sorted in ascending order.

28 Jun 2012 Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier Queffurust, Aurelien

One more test could be added:
x1 = [0 10 16 20 ]
x2 = [ 3 5 15 19 25]
-> out = 3 5 16 19

now if x1 has one more value :
x1 = [0 10 16 20 26]
you get :
Attempted to access first(2); index out of bounds because numel(first)=1.

Error in range_intersection (line 35)
if first(2)<second(1)

The test would be to check that the input vector are divisible by 2 ?

15 Jun 2012 Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier Queffurust, Aurelien

Since the bug has been fixed on 30 May 2012 , I use range_intersection . It works like a charm and is definetely faster than other FEx MergeBrackets.m (Interval merging by Bruno Luong)

Top Tags Applied by Xavier
intersection, interval
Files Tagged by Xavier
Updated   File Tags Downloads
(last 30 days)
Comments Rating
30 May 2012 Screenshot Range intersection Mathematical intersection of range composed of a union of intervals Author: Xavier Xavier interval, intersection 11 9
  • 5.0
5.0 | 4 ratings

Contact us