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

Reducing interval for jump length calcs to save time.

parent 9df78eed
No related branches found
No related tags found
No related merge requests found
...@@ -227,7 +227,7 @@ sum(p/N)/length(p)*l_max ...@@ -227,7 +227,7 @@ sum(p/N)/length(p)*l_max
%% %%
sum((T{1}.sol(1, 1:end-1)+T{1}.sol(1, 2:end))/2.*diff(T{1}.x)) sum((T{1}.sol(1, 1:end-1)+T{1}.sol(1, 2:end))/2.*diff(T{1}.x))
%% Do we need to look at the left side as well? %% Do we need to look at the left side as well?
figure; hold on; % figure; hold on;
plot(ls, p/N); plot(ls, p/N);
%% Write to file %% Write to file
cd /Users/hubatsch/Nextcloud/Langevin_vs_MeanField/Data_Figs_FokkPla/jump_length/ cd /Users/hubatsch/Nextcloud/Langevin_vs_MeanField/Data_Figs_FokkPla/jump_length/
...@@ -242,7 +242,7 @@ direc = 1; ...@@ -242,7 +242,7 @@ direc = 1;
bp = [3, 5, 7]; bp = [3, 5, 7];
for j = 1:length(bp) for j = 1:length(bp)
x0 = sort(bp(j)-direc*(0:0.001:3.02)); x0 = sort(bp(j)-direc*(0:0.001:2.02));
% Run simulations for 'delta' IC across outside % Run simulations for 'delta' IC across outside
T = {}; T = {};
parfor i = 1:length(x0) parfor i = 1:length(x0)
...@@ -253,7 +253,7 @@ for j = 1:length(bp) ...@@ -253,7 +253,7 @@ for j = 1:length(bp)
toc toc
end end
% Calculate probabilities for each jump length in ls. % Calculate probabilities for each jump length in ls.
l_max = 3; l_max = 2;
t_ind = 3; t_ind = 3;
ls = -direc*(0.000:0.005:l_max); ls = -direc*(0.000:0.005:l_max);
p = nan(1, length(ls)); p = nan(1, length(ls));
......
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