Skip to content
Snippets Groups Projects
Commit 07a05989 authored by Lars Hubatsch's avatar Lars Hubatsch
Browse files

nansum for probs in prob_laplace.

parent e2b75a55
No related branches found
No related tags found
No related merge requests found
...@@ -219,7 +219,7 @@ end ...@@ -219,7 +219,7 @@ end
toc toc
%% Normalization factor %% Normalization factor
% N = normalization(T, x0, 0, t_ind, direc, -params{1}) % N = normalization(T, x0, 0, t_ind, direc, -params{1})
N=sum(p)/length(p)*l_max; N=nansum(p)/length(p)*l_max;
% N = sum(p)*0.001; % N = sum(p)*0.001;
m = sum(ls.*p/N)/length(p)*l_max; m = sum(ls.*p/N)/length(p)*l_max;
% should sum to one % should sum to one
...@@ -263,6 +263,9 @@ parfor i = 1:length(ls) ...@@ -263,6 +263,9 @@ parfor i = 1:length(ls)
end end
toc toc
save(['prob_7_7_bp', num2str(bp(j))]); save(['prob_7_7_bp', num2str(bp(j))]);
pa = '/Users/hubatsch/Nextcloud/Langevin_vs_MeanField/data/constD/';
csvwrite([pa, 'jump_length_7_7_bp', num2str(bp(j)), '.csv'], ls)
csvwrite([pa, 'prob_7_7_bp', num2str(bp(j)), '.csv'], p);
end end
%% Mean cross jump length chi 7/3 %% Mean cross jump length chi 7/3
run_jump_lengths(-5, 1, 7/3, 1, 4, '73_1_01', 10^-6, 3, 0.5); run_jump_lengths(-5, 1, 7/3, 1, 4, '73_1_01', 10^-6, 3, 0.5);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment