Originally posted by Umfriend
View Post
Announcement
Collapse
No announcement yet.
We're #150 @ Rosetta@Home, improving the world
Collapse
X
-
-
Now I only dabble a bit with VBA and SQL but how do values get rounded other than through float/double limitations? I would be terrified if a variable declared as float becomes an integer all of a sudden.Join MURCs Distributed Computing effort for Rosetta@Home and help fight Alzheimers, Cancer, Mad Cow disease and rising oil prices.
[...]the pervading principle and abiding test of good breeding is the requirement of a substantial and patent waste of time. - Veblen
Comment
-
Yep... Imagine that you have the mathematical equations of 2 straight lines. You calculate the intersection point between them, but due to the float limitations its coordinates are rounded slightly. It can then occur that a test to check if the point is one of these lines fails.
Chapter 4 on this page is a nice read: https://www.cs.purdue.edu/homes/cmh/...books/geo.html
(but even the illustrations can give some ideas)
Introducing a normal epsilon check (if the point is within a small enough distance of the line, we consider it on the line) may work, but is not always adequate. My algorithm is highly dependent on accurate geometry calculations, so such small errors can have big consequences...
Comment
-
Principally, this seems to me to be an almost unsolvable issue as it may require infinite precision. Say you have two coordinates:
A = {pi, pi, pi}
B = {pi, pi, pi + x.10^-y)
There will always be a y for which an equality is found at any precision < 10^-y. Guess you can not forego an approximation within which an error may fall. I am ignorant on what it is you are trying to do but in cases where an equality or near equality is found, perhaps you could sort of zoom in? E.g, if you find
ABS(A - B) (in a dimension) < 10^-9 (or whereever precision is perfect) then look at
ABS(10^9 * (A-INT(A)) - 10^9 * (B-INT(B))) or somesuch? Not sure how large coordinates can get and it may be relevant as even large integers can not be represented perfectly in floating point notation.
Anyway, what do I know...Join MURCs Distributed Computing effort for Rosetta@Home and help fight Alzheimers, Cancer, Mad Cow disease and rising oil prices.
[...]the pervading principle and abiding test of good breeding is the requirement of a substantial and patent waste of time. - Veblen
Comment
-
You are right that it is unsolvable in the general case. But for specific applications, one can come up with solutions/approximations that are good enough. The zoom idea might work for some applications, but not for others.
In my case, the main issue was the wrong detection of intersection between areas that *should* have a shared boundary, but should not intersect more than that. It took a bit to come up with something, but I think I have a workaround that works for me. I also had some issues with the calculation of intersections, but could avoid them by rewriting the algorithm.
Comment
-
Is it 2-dimensional and are the areas defined by continuous functions?Join MURCs Distributed Computing effort for Rosetta@Home and help fight Alzheimers, Cancer, Mad Cow disease and rising oil prices.
[...]the pervading principle and abiding test of good breeding is the requirement of a substantial and patent waste of time. - Veblen
Comment
-
2 dimensional, defined by polygons. But the coordinates are georeferenced, so many calculations happen in the background to transform them to e.g. correct projections. In addition, I don't know how the data was processed before it came to me. These calculations cause that some areas which should share a boundary turn out to have an intersection or not share a boundary at all.
Comment
-
You will be missed but before all: good luck with what ever it is that is going on!Join MURCs Distributed Computing effort for Rosetta@Home and help fight Alzheimers, Cancer, Mad Cow disease and rising oil prices.
[...]the pervading principle and abiding test of good breeding is the requirement of a substantial and patent waste of time. - Veblen
Comment
-
Best of luck J1NG. I hope all is well.
Meanwhile, I can confirm that the new version of BOINC really makes a difference. I don't have the issues of delays when swapping, it properly detects when the computer is in use and releases resources much faster.
Comment
-
Also, SitFlyer has Resurrected! Welcome back!
Unfortunately, this may well mean we also stand to lose Marshmallowman soon. It's all a matter of seasons.Join MURCs Distributed Computing effort for Rosetta@Home and help fight Alzheimers, Cancer, Mad Cow disease and rising oil prices.
[...]the pervading principle and abiding test of good breeding is the requirement of a substantial and patent waste of time. - Veblen
Comment
-
Ah! October 28th another of our team made Predictor of the Day, J1NG! Congrats to you and our team! Nice one before you leave us for a (hopefully short) while.
Join MURCs Distributed Computing effort for Rosetta@Home and help fight Alzheimers, Cancer, Mad Cow disease and rising oil prices.
[...]the pervading principle and abiding test of good breeding is the requirement of a substantial and patent waste of time. - Veblen
Comment
-
OK, apparantly there are only three left crunching for the team
What's up guys?Join MURCs Distributed Computing effort for Rosetta@Home and help fight Alzheimers, Cancer, Mad Cow disease and rising oil prices.
[...]the pervading principle and abiding test of good breeding is the requirement of a substantial and patent waste of time. - Veblen
Comment
Comment