pombreda / pysal

Automatically exported from code.google.com/p/pysal
Other
0 stars 0 forks source link

Kernel Weights User functions missing K parameter. #154

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There appears to be a bug in the pysal User API for Kernel weights.

Pysal Offers, adaptive_kernelW_from_shapefile(shapefile, bandwidths=None, 
function='triangular', idVariable=None)
which calls: adaptive_kernelW(points,bandwidths=bandwidths,function=function)
which calls: Kernel(points, bandwidth=bandwidths,fixed=False, function=function)
If bandwidths is None, K is set to the default value of 2.

So we need to make K an option for the user functions.  The documentation for 
the 2 user functions even mentions K as an option.

Original issue reported on code.google.com by schmi...@gmail.com on 13 May 2011 at 7:24

GoogleCodeExporter commented 9 years ago
Fixed in r898

Original comment by schmi...@gmail.com on 13 May 2011 at 7:36