In kde, round j to integer to avoid inexact error in indexing. Allow caller to choose bandwidth.