From: A probabilistic framework to infer connectivity from function: a study of change detection and adaptation