public class TestNeighborhood extends TestCase {
public void testBubble() throws Throwable
{
NeighborhoodBubble bubble = new NeighborhoodBubble(2);
Assert.assertEquals(0.0, bubble.function(5, 0),0.1);
Assert.assertEquals(1.0, bubble.function(5, 4),0.1);
Assert.assertEquals(1.0, bubble.function(5, 5),0.1);
}