@Override
    public FloatBuffer getBuffer(float sx, float sy, float base, int size) {
        FloatBuffer retval = FloatBuffer.allocate(size * size);
        for (int y = 0; y < size; y++) {
            for (int x = 0; x < size; x++) {
                retval.put(this.modulate((sx + x) / size, (sy + y) / size, base));
            }
        }
        return retval;
    }
Utility base class for Noise implementations

@author Anthyon
jme3-terrain/src/main/java/com/jme3/terrain/noise/basis/Noise.java