I am trying to implement armortized noise, currently not working

It always returns 0. It is possible that since amortized noise is baced on cells, this might not work.

This should be much faster(allegedly) than perlin. It was created by Ian Parberry, and can be found here; http://larc.unt.edu/ian/research/amortizednoise/

I am copying a java port of it found here: http://www.reddit.com/r/proceduralgeneration/comments/1wq895/demo_infinite_2d_procedural_terrain_using_java/cf4ns6v