This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class SensorService extends Service implements SensorEventListener, GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener { | |
| // final Handler handler = new Handler(); | |
| private PowerManager pm; | |
| private PowerManager.WakeLock wl; | |
| GoogleApiClient googleClient; | |
| String tail="."; | |
| String recordingStrategy=""; | |
| int countDM=0; | |
| boolean thread=false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import scipy as sp | |
| import pylab as plt | |
| from scipy.integrate import odeint | |
| from scipy import stats | |
| import scipy.linalg as lin | |
| ## Full Hodgkin-Huxley Model (copied from Computational Lab 2) | |
| # Constants | |
| C_m = 1.0 # membrane capacitance, in uF/cm^2 |