def jackknife_resampling(data):
 n = data.shape[0]
 assert (n > 0), u'data must contain at least one measurement'
 resamples = np.empty([n, (n - 1)])
 for i in range(n):
  resamples[i] = np.delete(data, i)
 return resamples

def jackknife_resampling ( data ) : n = data . shape [ 0 ] assert ( n > 0 ) , u'data must contain at least one measurement' resamples = np . empty ( [ n , ( n - 1 ) ] ) for i in range ( n ) : resamples [ i ] = np . delete ( data , i ) return resamples
performs jackknife resampling on numpy arrays .