Pairwise Maximum Entropy Model for Binary Data (e.g. Neural Spike Trains)