Skip to content
Prev 13486 / 29559 Next

Create distance 'neighborhood' (zone of indifference) when clustering binary data

On Wed, 23 Nov 2011, Roger Bivand wrote:

            
This wasn't a good idea, as points with (x-100) < 1 end up with weights > 
1. It would need trapping to reduce them to 1:

idw2 <- lapply(dnb2, function(x) {x100 <- x-100; x100 <- ifelse (x100 < 1, 
1, x100); 1/x100})

Roger