Skip to content

Commit

Permalink
added hill_v1
Browse files Browse the repository at this point in the history
  • Loading branch information
jovo committed May 22, 2013
1 parent eb421e8 commit 3ebbb99
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 442 deletions.
Binary file removed .DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions Hill_v1.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
function F = Hill_v1(P,C)
% generalized hill model
C(C<0) = 0;
F = C.^P.n./(C.^P.n+P.k_d);
2 changes: 1 addition & 1 deletion demo.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
% initialize params
P.a = 1; % observation scale
P.b = 0; % observation bias
tau = 1; % decay time constant
tau = 1.5; % decay time constant
P.gam = 1-V.dt/tau; % C(t) = gam*C(t-1)
P.lam = 0.1; % firing rate = lam*dt
P.sig = 0.1; % standard deviation of observation noise
Expand Down
30 changes: 0 additions & 30 deletions demo.m~

This file was deleted.

2 changes: 2 additions & 0 deletions fast_oopsi.m
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@

%% set default model Parameters



if nargin < 3, P = struct; end
if ~isfield(P,'sig'), P.sig = mean(mad(F',1)*1.4826); end
if ~isfield(P,'gam'), P.gam = (1-V.dt/1)*ones(V.Ncells,1); end
Expand Down
Loading

0 comments on commit 3ebbb99

Please sign in to comment.