def getSparsity(self):
    """
    Return the sparsity of the current union SDR
    """
    sparsity = numpy.sum(self._unionSDR) / self._numInputs
    return sparsity
def getSparsity ( self ) : sparsity = numpy . sum ( self . _unionSDR ) / self . _numInputs return sparsity
Return the sparsity of the current union SDR