Skip to content

Commit

Permalink
Improved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RomeshA committed Nov 1, 2015
1 parent 02d656a commit 2176cc3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions +db_fit/quick_fit.m
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
function [f_fitted,P_fitted,idx,db_data,min_chisq] = quick_fit(model,target_f,target_P,force_wake_state)
% Fit a power spectrum to a parameter combination already in a database
% Arguments are
% f - experimental frequencies
% P - experimental power
% pp_f - database frequencies
% pp - matrix of all power spectra in database
% constraint_data : 1/lsq*constraint_weight is the probability. constraint_weight can be calculated externally
% model - BrainTrak model
% target_f - experimental frequencies
% target_P - experimental power
% force_wake_state - set to 1 for wake and 0 for sleep, to fit to only these states. Leave empty otherwise
import utils.mex_trapz

load db_fit/pp_allstates
Expand Down

0 comments on commit 2176cc3

Please sign in to comment.