Jump to content

Moon Hotspot


AirMe

Recommended Posts

It appears that 100-125/pi*dist is the wrong formula. It gets some of the points wrong.

The actual formula is 100-x*dist, where is x is somewhere betweeen 39.57151035 and 39.60015756. I got those bounds using about 100 different moon wonder location/hotspot combinations entered here.

125/pi is 39.789, which doesn't fall between 39.58324298 and 39.60015756.

I'm just going to use 39.6 until someone comes up with an example for which that doesn't work, or comes up with a more elegant number within those bounds. Why the admin would pick 39.6 I don't know. Maybe I'll start calling 39.6 Kevin's constant. :lol1:

EDIT: I narrowed the bounds a bit more. 39.6 still falls within the bounds.

Edited by Chintan
Link to comment
Share on other sites

  • Replies 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

Cool, so you are going to try to automate the process even more?

If you're interested in reducing the complexity of the search from 360*180 evaluations down to a much smaller number, you can compute a continuous approximation to the discrete problem as your initial guess, then just examine a small number of points around that. Of course it's not really necessary with fast computers, but perhaps you find it mathematically interesting.

Also, for the record, I was aware that the formula [url="http://forums.cybernations.net/index.php?showtopic=71214&view=findpost&p=2152464"]isn't exact[/url] ;)

Link to comment
Share on other sites

[quote name='Provost Zakharov' timestamp='1296388773' post='2611028']
Cool, so you are going to try to automate the process even more?

If you're interested in reducing the complexity of the search from 360*180 evaluations down to a much smaller number, you can compute a continuous approximation to the discrete problem as your initial guess, then just examine a small number of points around that. Of course it's not really necessary with fast computers, but perhaps you find it mathematically interesting.

Also, for the record, I was aware that the formula [url="http://forums.cybernations.net/index.php?showtopic=71214&view=findpost&p=2152464"]isn't exact[/url] ;)
[/quote]

Mostly automated at least for now. I still have to copy the coords from the forums into MATLAB, and then copy the plots and priority points back. Also, I sometimes manually edit the priority points to pick ones that will narrow down the possibilities better. For example, if there's just one 50% point, the best one to pick next is the one directly opposite the known 50% point, because that's least likely to be 50%, so it will narrow down the number of choice most. Right now my program will just pick a few arbitrary red points to be priority points though, so I still have to figure out a good way to pick those well automatically.

It would be cool to have this as a website which is fully automated, where people enter there coords into the website and it automatically updates the map and suggests what to try next.

Narrowing down your guess initially using a continuous approximation works well if you have 3 non-50% points spaced far apart, but otherwise there might be problems with having 2 possible regions, or a really long arc of possible locations.

Edited by Chintan
Link to comment
Share on other sites

[quote name='Chintan' timestamp='1296391695' post='2611051']
Narrowing down your guess initially using a continuous approximation works well if you have 3 non-50% points spaced far apart, but otherwise there might be problems with having 2 possible regions, or a really long arc of possible locations.
[/quote]

For example: This is what you get using the first 2 points from the Dec 2010 moon hotspot: (-13, -168): 64% and
(-15, -169): 65%.

Even though there are only 2 points, and they're really close to each other, they narrow down the possibilities for where the hotspot could be quite a bit, especially if you only consider the red points.

[img]http://lh6.ggpht.com/_aIYowgo2fqo/TUVfz82JnII/AAAAAAAAAKI/xZFMO191F9Y/s0/Screen%20shot%202011-01-30%20at%204.53.02%20AM.png[/img]

Link to comment
Share on other sites

[quote name='Provost Zakharov' timestamp='1296388773' post='2611028']
If you're interested in reducing the complexity of the search from 360*180 evaluations down to a much smaller number, you can compute a continuous approximation to the discrete problem as your initial guess, then just examine a small number of points around that. Of course it's not really necessary with fast computers, but perhaps you find it mathematically interesting.
[/quote]
There is a much easier way to reduce the number of possible hotspot locations as they aren’t as random as you may think.
Hint: Plot all hotspots found so far. ;)




My hotspot finding code, maybe it’s of some use to someone.

[code]
struct pos_t {
double lat;
double lng;
int efficacy;
} static const pos_data[] = {

//Moon 2010-11
{70.00000002, 7, 50},

{19.31114335506464, -81.5625, 50},
{-37.16031654673676, -101.25, 55},
{17.978733095556155, 113.5546875, 50},

{30.14512718337613, 146.953125, 58},

{-9, -161, 93},
{-34, 145, 67},
{-12, -19, 50},
{-17, -173, 96},
{37.71859032558813, -129.375, 56},
};


static int calc_efficacy(double h_lat, double h_lng, double base_lat, double base_lng){
const double pi = 3.14159265358979323846264338327950288;
const double deg2rad = pi / 180;
const double magic_constant = 39.5856603902019127; //pi*12.6 ???

double h_lat_rad = h_lat * deg2rad;
double h_long_rad = h_lng * deg2rad;
double base_lat_rad = base_lat * deg2rad;
double base_long_rad = base_lng * deg2rad;
double distance = acos(sin(base_lat_rad) * sin(h_lat_rad) + cos(base_lat_rad) * cos(h_lat_rad) * cos(h_long_rad - base_long_rad));
return std::max(int(100 - distance * magic_constant), 50);
}

void moon_mars_find_hotspot(){
const int num_data_points = sizeof(pos_data) / sizeof(pos_data[0]);

std::vector<pos_t> scores;
for(int lat = -85; lat <= 85; lat++){
for(int lng = -180; lng <= 180; lng++){
int diff_sum = 0;
for(int i = 0; i < num_data_points; i++){
int efficacy = calc_efficacy(lat, lng, pos_data[i].lat, pos_data[i].lng);
diff_sum += std::abs(efficacy - pos_data[i].efficacy);
}
pos_t tmp_pos = {lat, lng, diff_sum};
scores.push_back(tmp_pos);
}
}

int num_to_print = 30;
int num_possible_hotspots = 0;
std::vector<pos_t>::iterator it = scores.begin();
for(; it != scores.end(); ++it){
if(it->efficacy == 0){
num_possible_hotspots++;
if(num_to_print >= num_possible_hotspots){
bool tilt = calc_efficacy(it->lat, it->lng, it->lat, it->lng) != 100;
std::cout<<"lat="<<std::setw(5)<<it->lat<<(tilt ? "*" : " ")<<" lng="<<std::setw(5)<<it->lng<<std::endl;
}
}
}
std::cout<<"Possible hotspots: "<<num_possible_hotspots<<std::endl;
}
[/code]

Link to comment
Share on other sites

[quote name='Chintan' timestamp='1296391695' post='2611051']
It would be cool to have this as a website which is fully automated, where people enter there coords into the website and it automatically updates the map and suggests what to try next.[/quote]

Yeah that would be pretty neato. One thing to be careful about though, is you'll want to avoid recommending the same guess to more than one person, which would be a waste.

[quote]Narrowing down your guess initially using a continuous approximation works well if you have 3 non-50% points spaced far apart, but otherwise there might be problems with having 2 possible regions, or a really long arc of possible locations.
[/quote]

Actually it works well with 2 points as well. If there are two possible regions you want to guess inbetween them to get the average (avoid a chance of getting 50%) and that's exactly what the continuous approx will do.


[quote name='Coffee Shock' timestamp='1296427931' post='2611631']
There is a much easier way to reduce the number of possible hotspot locations as they aren’t as random as you may think.
Hint: Plot all hotspots found so far. ;)[/quote]

I'm talking about reducing the number of evaluations of the efficiency function, not the number of possible hot spots.

I never said anything about hotspot locations being "random", so I'm not sure where that's coming from.

Also, FYI, giving out "Hints" with winky emoticons comes across somewhat condescending :rolleyes:

Link to comment
Share on other sites

[quote name='Coffee Shock' timestamp='1296427931' post='2611631']
There is a much easier way to reduce the number of possible hotspot locations as they aren’t as random as you may think.
Hint: Plot all hotspots found so far. ;)
[/quote]

Wow. :o

Now why does mars have 2 outliers? :huh:

[img]http://lh4.ggpht.com/_aIYowgo2fqo/TUaS0PeBLOI/AAAAAAAAAKc/a4BfnhuiSmE/s800/Screen%20shot%202011-01-31%20at%202.43.51%20AM.png[/img]

Edited by Chintan
Link to comment
Share on other sites

Ok, here we go. :) Someone post the efficiency at last month's hotspot to begin, and I'll figure out the best place to test next.

I'm going to be logged on for a while, and can calculate the best location to try next, so if you have multiple moon wonders, wait for me to suggest a location, then move 1 wonder, wait for me to suggest another location, then move the next one, etc. That way you get the most out of your moves.

Edited by Chintan
Link to comment
Share on other sites

[size="5"][b]Possible Moon Hotspot Locations (February 2011):[/b][/size]

Tried a location? Post the result in this thread! Every point helps, even if it gives 50%. Post EXACT coordinates. Don't round them!

Points Tried so far (lat, long):
(-23, 168): 50%

This post is old. Go see this one: http://forums.cybernations.net/index.php?showtopic=64843&view=findpost&p=2614368

[img]http://lh4.ggpht.com/_aIYowgo2fqo/TUeoLTOf5GI/AAAAAAAAAKo/1Cuh5Z4W2VA/s0/Screen%20shot%202011-01-31%20at%2010.27.20%20PM.png[/img]

Edited by Chintan
Link to comment
Share on other sites

[size="5"][b]Moon Hotspot Locations (February 2011):

(16,-108) URL: lon=-108&lat=16[/b][/size]

Points tried:
(-23, 168): 50%
(54, -26): 50%
(11, -118): 92%
(16, -108): 100%

Maps of Possible hotspot locations:

With:
(-23, 168): 50%
http://lh4.ggpht.com/_aIYowgo2fqo/TUeoLTOf5GI/AAAAAAAAAKo/1Cuh5Z4W2VA/s0/Screen%20shot%202011-01-31%20at%2010.27.20%20PM.png

With:
(-23, 168): 50%
(54, -26): 50%
http://lh4.ggpht.com/_aIYowgo2fqo/TUetQLxMtII/AAAAAAAAAK4/TffklG1xAVY/s0/Screen%20shot%202011-01-31%20at%2010.49.40%20PM.png

With:
(-23, 168): 50%
(54, -26): 50%
(11, -118): 92%
http://lh4.ggpht.com/_aIYowgo2fqo/TUevGdsrD8I/AAAAAAAAALA/TRfxWG_kgho/s0/Screen%20shot%202011-01-31%20at%2010.58.16%20PM.png

Edited by Chintan
Link to comment
Share on other sites

Great job Chintan! I'm lovin' those plots. The fact that you're able to use 50% points helps a lot more than I thought it would.

Coffee Shock: Now I see what you meant about the locations not being random. (Your wording was quite ambiguous to me and I didn't find the right interpretation -- sorry.) I wonder if admin made it that way intentionally to help us narrow the search?

Anyone think the efficiency function should be changed now (made more complex) to spice things up? I think it's just too easy to solve now.

Link to comment
Share on other sites

This is really great, guys!

On a side note, I totally did not look at past data in figuring where future locations would be. Anyone want to take a stab at March's hotspot? Or make wagers on it? :P (Don't count me in on a bet, though, since I don't think I'm going to bother searching through the past datapoints)

Link to comment
Share on other sites

  • 4 weeks later...

[quote name='USMC123' timestamp='1298952302' post='2647484']
How do you move punch in precise coordinates?

/me read it once, but forgot.

P.S. going to wait for next month's hotspot ;)
[/quote]

Move the marker but don't click the link. Right click the link and copy the URL. Paste the URL into your browser, but don't hit enter. Replace the "lon=********&lat=*********" part of the URL with the latitude and longitude you want to move the wonder to. Then hit enter.

Link to comment
Share on other sites

Ok, here we go again. Same drill as last time: wait for me to calculate what coordinates to try and then try them.

If you have multiple moon wonders, move 1, post the coords, and then wait for me to calculate what to try next before moving the next one.

If anyone just got a new moon wonder and hasn't moved it yet, post the effectiveness at (0,0) after update.

Link to comment
Share on other sites

[size="5"][b]Moon Hotspot Location (March 2011):[/b][/size]

[size="5"][b](23, -93) URL: lon=-93&lat=23[/b][/size]

Points Tried:
(16, -108): 89%
(17.47643, -125.06836): 78%
(24, -92): 99%
(23, -93): 100%

Progress Maps:

With:
(16, -108): 89%
[spoiler][img]https://lh5.googleusercontent.com/_K1yUhVHcnKI/TWyT0Q-X5uI/AAAAAAAAAHw/YgcMlGAXGIs/s0/Screen%20shot%202011-02-28%20at%2010.35.43%20PM.png[/img][/spoiler]

With:
(16, -108): 89%
(17.47643, -125.06836): 78%
[spoiler][img]https://lh5.googleusercontent.com/_K1yUhVHcnKI/TWyWjspy8WI/AAAAAAAAAH8/u5iDQAJZMX0/s0/Screen%20shot%202011-02-28%20at%2010.46.40%20PM.png[/img][/spoiler]

With:
(16, -108): 89%
(17.47643, -125.06836): 78%
(24, -92): 99%
[spoiler][img]https://lh3.googleusercontent.com/_K1yUhVHcnKI/TWybDOwSZaI/AAAAAAAAAII/jZkwq-p7LpA/s0/Screen%20shot%202011-02-28%20at%2011.06.25%20PM.png[/img][/spoiler]

With:
(16, -108): 89%
(17.47643, -125.06836): 78%
(24, -92): 99%
No blue points version (I'm going to start using this from now on):
[spoiler][img]https://lh5.googleusercontent.com/_K1yUhVHcnKI/TWyb-UcfWiI/AAAAAAAAAIQ/gk5x5aRE55Q/s0/Screen%20shot%202011-02-28%20at%2011.10.07%20PM.png[/img][/spoiler]

Edited by Chintan
Link to comment
Share on other sites

[quote name='Chintan' timestamp='1298959441' post='2647715']
What's the effectiveness at last month's hotspot location? It's still 100% on mars. :unsure:

Edit: Never mind, took a few minutes to change. Someone post the effectiveness at last month's hotspot.
[/quote]

89%, so it's somewhere close...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...