'number of boundaries **before** extension of ends'

def _central_N(self):

    nb = len(self._boundaries)
    if (self.extend == u'both'):
        nb -= 2
    elif (self.extend in (u'min', u'max')):
        nb -= 1
    return nb
