Revision 26:b03ef38fe497 parameterStore/MAPparamsEndo.m
| parameterStore/MAPparamsEndo.m | ||
|---|---|---|
| 1 | 1 |
function method=MAPparamsEndo ... |
| 2 |
(BFlist, sampleRate, showParams) |
|
| 2 |
(BFlist, sampleRate, showParams, paramChanges)
|
|
| 3 | 3 |
% MAPparams<> establishes a complete set of MAP parameters |
| 4 | 4 |
% Parameter file names must be of the form <MAPparams> <name> |
| 5 | 5 |
% |
| ... | ... | |
| 58 | 58 |
% i.e. a minimum ratio of 0.056. |
| 59 | 59 |
% 'spikes' model: AR based on brainstem spiking activity (LSR) |
| 60 | 60 |
OMEParams.rateToAttenuationFactor=0.006; % * N(all ICspikes) |
| 61 |
% OMEParams.rateToAttenuationFactor=0; % * N(all ICspikes)
|
|
| 61 |
% OMEParams.rateToAttenuationFactor=0; % * N(all ICspikes) |
|
| 62 | 62 |
|
| 63 | 63 |
% 'probability model': Ar based on AN firing probabilities (LSR) |
| 64 | 64 |
OMEParams.rateToAttenuationFactorProb=0.01;% * N(all ANrates) |
| 65 |
% OMEParams.rateToAttenuationFactorProb=0;% * N(all ANrates)
|
|
| 65 |
% OMEParams.rateToAttenuationFactorProb=0;% * N(all ANrates) |
|
| 66 | 66 |
|
| 67 | 67 |
% asymptote should be around 100-200 ms |
| 68 | 68 |
OMEParams.ARtau=.05; % AR smoothing function |
| ... | ... | |
| 104 | 104 |
DRNLParams.rateToAttenuationFactor = .01; % strength of MOC |
| 105 | 105 |
% DRNLParams.rateToAttenuationFactor = 0; % strength of MOC |
| 106 | 106 |
% 'probability' model: MOC based on AN spiking activity (HSR) |
| 107 |
DRNLParams.rateToAttenuationFactorProb = .005; % strength of MOC |
|
| 107 |
DRNLParams.rateToAttenuationFactorProb = .0055; % strength of MOC
|
|
| 108 | 108 |
% DRNLParams.rateToAttenuationFactorProb = .0; % strength of MOC |
| 109 |
DRNLParams.MOCrateThreshold =70; % spikes/s probability only |
|
| 109 |
DRNLParams.MOCrateThresholdProb =70; % spikes/s probability only
|
|
| 110 | 110 |
|
| 111 | 111 |
DRNLParams.MOCtau =.1; % smoothing for MOC |
| 112 | 112 |
|
| ... | ... | |
| 263 | 263 |
end |
| 264 | 264 |
|
| 265 | 265 |
|
| 266 |
%% now accept last minute parameter changes required by the calling program |
|
| 267 |
% paramChanges |
|
| 268 |
if nargin>3 && ~isempty(paramChanges) |
|
| 269 |
nChanges=length(paramChanges); |
|
| 270 |
for idx=1:nChanges |
|
| 271 |
eval(paramChanges{idx})
|
|
| 272 |
end |
|
| 273 |
end |
|
| 274 |
|
|
| 275 |
|
|
| 266 | 276 |
%% write all parameters to the command window |
| 267 | 277 |
% showParams is currently set at the top of htis function |
| 268 | 278 |
if showParams |
| ... | ... | |
| 276 | 286 |
eval(['UTIL_showStructureSummary(' nm{i} ', ''' nm{i} ''', 10)'])
|
| 277 | 287 |
end |
| 278 | 288 |
end |
| 289 |
|
|
| 290 |
% highlight parameter changes made locally |
|
| 291 |
if nargin>3 && ~isempty(paramChanges) |
|
| 292 |
fprintf('\n Local parameter changes:\n')
|
|
| 293 |
for i=1:length(paramChanges) |
|
| 294 |
disp(paramChanges{i})
|
|
| 295 |
end |
|
| 296 |
end |
|
| 279 | 297 |
end |
| 280 | 298 |
|
| 281 | 299 |
|
Also available in: Unified diff