From one of the authors of A Mathematical Formalization of Hierarchical Temporal Memory's Spatial Pooler.