def test_Theil(self): full_sw = mm.Theil(self.df_tessellation, "area", self.sw, "uID").series assert full_sw[0] == approx(0.25744684) limit = mm.Theil( self.df_tessellation, self.df_tessellation.area, self.sw, "uID", rng=(10, 90), ).series assert limit[0] == approx(0.1330295) zeros = mm.Theil(self.df_tessellation, np.zeros(len(self.df_tessellation)), self.sw, "uID").series assert zeros[0] == 0
def time_Theil(self): mm.Theil(self.df_tessellation, "area", self.sw, "uID")