def gincs(wed, y, permutations=999, segment=False): if segment: # segment wed and y # get new wed and extract new y raise NotImplementedError w = networkw.w_links(wed) mi = ps.Moran(y, w, permutations=permutations) return mi
def lincs(wed, y, permutations=999, segment=False): if segment: # segment wed and y # get new wed and extract new y raise NotImplementedError w = networkw.w_links(wed) # lisa from PySAL lisa = ps.Moran_Local(y, w, permutations=permutations) return lisa
def w_links(self): return networkw.w_links(self)