def gini(self):
if self.count()><NUM_LIT:1>:<EOL><INDENT>xsort = sorted(self.raster.data[self.raster.mask == False].flatten()) <EOL>y = np.cumsum(xsort)<EOL>B = sum(y) / (y[-<NUM_LIT:1>] * len(xsort))<EOL>return <NUM_LIT:1> + <NUM_LIT:1.>/len(xsort) - <NUM_LIT:2>*B<EOL><DEDENT>else:<EOL><INDENT>return <NUM_LIT:1><EOL><DEDENT>
geo.gini()

Return computed Gini coefficient.