Skip to content

Commit

Permalink
Proposed fix for #12
Browse files Browse the repository at this point in the history
  • Loading branch information
RomeshA committed Nov 1, 2015
1 parent 2176cc3 commit 53d18bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Published/Abeysuriya_2015/fit_cluster.m
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@
fit_data.skip_fit(1:end) = 3;
fit_data.target_f = d.f(:);
fit_data.target_P = target_P;
model.prepare_for_fit(fit_data.target_f,fit_data.target_P,fit_data.fitted_params,fit_data.posterior_pp,fit_data.skip_fit);
fit_data(k).fitted_chisq = model.probability(fit_data.fitted_params);
fit_data(k).bic = NaN;
fit_data(k).aic = NaN;
fit_data(k).aicc = NaN;
fprintf('Skipping %i due to bad data\n',j);
else
try
Expand Down

0 comments on commit 53d18bd

Please sign in to comment.