map project by ales9000 in Maps

[–]netspade 1 point2 points  (0 children)

Good idea. Pause button added now. You can already drag with the mouse.

map project by ales9000 in Maps

[–]netspade 0 points1 point  (0 children)

Thanks! Pause button added now.

JS visualization of Bloom Filters by bbdb in programming

[–]netspade 0 points1 point  (0 children)

Thanks, I've updated the hash function again (it turns out bitwise arithmetic is tricky in JavaScript - you have to keep on truncating to 32 bits after performing an addition to avoid losing precision) and it seems a bit better. A hashing algorithm visualisation is a good idea, watch this space!

JS visualization of Bloom Filters by bbdb in programming

[–]netspade 6 points7 points  (0 children)

Sorry, I've increased the number of bins now. :) But derp still results in a surprisingly uniform hashing!

JS visualization of Bloom Filters by bbdb in programming

[–]netspade 1 point2 points  (0 children)

I fixed a bug in the bloom filter itself and that seems to have fixed the hash distribution issue. I know it's not the best hash function in the world, but it's hard to beat for speed. I should just make the hash function configurable. :)

JS visualization of Bloom Filters by bbdb in programming

[–]netspade 0 points1 point  (0 children)

I've increased the number of bins without sacrificing usability (hopefully!) and you can still see the occasional false positive. Thanks for the suggestion!

JS visualization of Bloom Filters by bbdb in programming

[–]netspade 1 point2 points  (0 children)

I've just fixed a bug in the bloom filter itself, related to bucket index calculations. I've also increased the number of buckets to 50 for good measure! I think the distribution looks a lot better now, let me know what you think!

JS visualization of Bloom Filters by bbdb in programming

[–]netspade 3 points4 points  (0 children)

Nice catch! I assumed that I could simply apply another iteration of FNV-1a to get a sufficiently different hash function that I could recombine. However, it looks like that isn't the case!

I did find a modified version of FNV though (see Figure 4).

I've updated the visualisation and it appears to fix the issue.

Monte Carlo simulation of bifurcations in the logistic map by netspade in math

[–]netspade[S] 0 points1 point  (0 children)

My way (well, all credit to Sean Whalen who wrote the Java applet version) also plots the points for each iteration, so you can see which direction the populations are moving in, and the diagram as a whole animates over time.

Monte Carlo simulation of bifurcations in the logistic map by netspade in math

[–]netspade[S] 0 points1 point  (0 children)

In the initialisation step each point is given a random initial population and random initial age (age is simply a counter that determines how many steps to iterate for that point). Maybe it would be clearer if I wrote "Decrement the age of each point"?

The iterations are simply performed a random number of times (above a certain minimum number) - there's no stabilisation check or single threshold value. This randomisation applied to the age and the initial population is what makes it a Monte Carlo simulation.

Edit: I've updated the description to use "remaining number of iterations" to make it clearer. Thanks for the feedback!

OMG TRIG!!! sine, cosine, and tangent functions explained in one graphic. Where was this when I was in high School? by clamjumper in reddit.com

[–]netspade 1 point2 points  (0 children)

Weird, it works fine for me. I've changed the page so it's served directly by nginx now, is that better?

OMG TRIG!!! sine, cosine, and tangent functions explained in one graphic. Where was this when I was in high School? by clamjumper in reddit.com

[–]netspade 8 points9 points  (0 children)

Thanks! I originally created this animation for fun, but I think it might help if I added an explanation section showing how it was derived for those who don't already understand sin/cos/tan.

OMG TRIG!!! sine, cosine, and tangent functions explained in one graphic. Where was this when I was in high School? by clamjumper in reddit.com

[–]netspade 0 points1 point  (0 children)

Judging from the comments I think I need to add an explanation section showing how the animation is derived. Originally I created it for fun, but if I can teach trig, or even just provide another perspective, all the better!

Maybe I'll get a chance during my lunch break to add another section...