I ran into the same error as described by Oliver and fixed it by replacing
options = optimset('FunValCheck','off')
defaultError('override error, be cautious!');
I am running the code perfectly on sets of 45 points (each has a X and Y coordinate). But when I try to only use a subset of those 45 points I get:
Error using fzero (line 274)
The function values at the interval endpoints must differ in sign.
Error in kde2d (line 101)
Is code not able to handle the low sample size? Not sure what is happening. It seems to not be able to find a bandwidth.
Hi, I am using kde2d package for whale distribution data. I would like to plot the 50% and 95% kernels to look at where the core of the sightings are being made. Is this possible with this package? I am also not sure what the current legend means. I like the colour gradation that shows highly dense areas vs. lower density areas but it would be great if I could figure out why the numbers are as high as they are. I would appreciate any help on this matter please.