RecipePythonBeginner Background subtraction: one threshold for every cell in a microscope image pairs = np.unique(np.stack([lab, true_labels])[:, (lab > 0) & (true_labels > 0)], axis=1)
ConceptPythonIntermediate System identification: a DC motor's model from its voltage and speed v = np.stack([np.ones_like(p1), -(p1 + p2), p1 * p2]) # (1, a1, a2) for every pair