You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function [popParams,errorParams,convIdx]=dnf_calcSepParams(inMat,p)
%QUESTION 3 SECTION D
%calculate system parameters for separate populations.
%inputs: inMat: mat with two columns: time and population.
%p: value represents the percentage that behind it the population
%grows logarithmically.
%ouputs: popParams: one population params, errorParams: Confidence
%intervals,convIdx:convergence index
[convVal,CI_K,convIdx]=dnf_asympt(inMat(:,2),0.01); %convVal-convergence constant,CI_K-K confidence interval,convIdx-convergence index %Want only the pop and not the time
tsd=p*convVal; %logarithmic threshold
[lamda,N0,CI_lamda,CI_N0]=dnf_evalLogParams(inMat,tsd);%estimate No and lamda values
popParams=struct('N0',N0,'K',convVal,'lamda',lamda,'alpha',0); %struct as described in 1)E)ii