Rank: 2598 based on 54 downloads (last 30 days) and 2 files submitted
photo

Meng Sang Ong

E-mail
Company/University
Monash University

Personal Profile:
Professional Interests:
design and testing of mixed-signal integrated circuits, signal processing, algorithm development.

 

Watch this Author's files

 

Files Posted by Meng Sang View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
10 Feb 2011 Screenshot Arbitrary Square Bounded Voronoi Diagram Compute individual Voronoi cell area of 2D point sets bounded in an arbitrary square Author: Meng Sang Ong voronoi, bounded, area, square, mathematics 29 7
  • 3.75
3.8 | 4 ratings
09 Feb 2011 Circle Bounded Voronoi Diagram Compute individual Voronoi cell area of 2D point sets bounded in a unit circle Author: Meng Sang Ong voronoi, bounded, area, circle, mathematics 25 1
  • 5.0
5.0 | 1 rating
Comments and Ratings by Meng Sang
Updated File Comments Rating
07 Feb 2012 Arbitrary Square Bounded Voronoi Diagram Compute individual Voronoi cell area of 2D point sets bounded in an arbitrary square Author: Meng Sang Ong

Hi Oscar,
Thank you for your comment.
To answer your question, the function aims to compute the individual Voronoi cell area of point sets BOUNDED in an arbitrary square.

However, from your inputs, you have a x-input (5.0000,5.0000) which lies outside of your square boundary [0 1 0 1], hence will result in incorrect cell area computation.

You can either opt to have all your x and y points inside the square [0 1 0 1] or introduce a larger boundary, e.g. [0 5 0 5], so that it encapsulates your third point (5.0000, 5.0000).

Hope it helps.

Comments and Ratings on Meng Sang's Files View all
Updated File Comment by Comments Rating
09 Oct 2014 Arbitrary Square Bounded Voronoi Diagram Compute individual Voronoi cell area of 2D point sets bounded in an arbitrary square Author: Meng Sang Ong Charles

I only used it for a very simple rectangle bounding an area with four "precipitation gage" points, but it worked well. The figures come out looking odd and confusing, but the calculation of areas, which is the basic point, was correct. Thanks!

16 May 2014 Arbitrary Square Bounded Voronoi Diagram Compute individual Voronoi cell area of 2D point sets bounded in an arbitrary square Author: Meng Sang Ong Tom

By a "partial solution," what did Simon mean (on 15 Feb 2012)?

After I edit SquareBV line 66 to add the qhull option QJ, SquareBV now runs, but reports an (incorrect) area of zero for each of four Voronoi cells.

Any ideas on how to fix this?

27 Mar 2014 Arbitrary Square Bounded Voronoi Diagram Compute individual Voronoi cell area of 2D point sets bounded in an arbitrary square Author: Meng Sang Ong Dikun

I think I have found in some cases this code doesn't work properly.

Try examples:

SquareBV([56.01 188.01 47.01],[6 9 4],0,[-450 450 -750 750])

or

SquareBV([56.01 188.01 47.01],[6 9 4],0,[-450 450 0 750])

PS: toggleplot=1 doesn't plot sensible figures.

27 Sep 2013 Circle Bounded Voronoi Diagram Compute individual Voronoi cell area of 2D point sets bounded in a unit circle Author: Meng Sang Ong DUT

helpful

15 Feb 2012 Arbitrary Square Bounded Voronoi Diagram Compute individual Voronoi cell area of 2D point sets bounded in an arbitrary square Author: Meng Sang Ong Arame, Simon

I found a partial solution to my enquiry, voronoin has to be called with the option 'QJ'

Contact us