Started to track down the source of error in deterministic routine.  Seems to be the NN bandwidth which is too high - the actual datapoints in the KDE are sensible, but they extend too far.

Started coding up fixed bandwidth weighted KDE, but currently broken.
MUST add tests for all the KDEs, incl variable bandwidth and weighted.