added script to fit ising model with different speed thresholds