def blockCost(self, imin, imax):
    size = self.blockSize(imin, imax)
    content = self.blockContent(imin, imax)
    if (content == 0):
        return 0
    my_cost = (content * (num.log((content / size)) - 1))
    return my_cost
def blockCost(self, imin, imax):
    size = self.blockSize(imin, imax)
    content = self.blockContent(imin, imax)
    if (content == 0):
        return 0
    my_cost = (content * (num.log((content / size)) - 1))
    return my_cost