From 3e35dea96d6f794c7a41e7f0621ae3f078197511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Thu, 22 Dec 2011 11:17:24 +0100 Subject: [PATCH] Added plots. Comparison of SEP and EP. --- tests/ep/rbcii.mod | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tests/ep/rbcii.mod b/tests/ep/rbcii.mod index 2f519164e..2e098d2a9 100644 --- a/tests/ep/rbcii.mod +++ b/tests/ep/rbcii.mod @@ -25,6 +25,7 @@ sigma2 = 0.001; @#if extended_path_version rho = 0.800; @#endif + external_function(name=mean_preserving_spread); model(block,bytecode,cutoff=0); @@ -56,8 +57,6 @@ model(block,bytecode,cutoff=0); end; - - @#if extended_path_version shocks; @@ -71,10 +70,20 @@ end; options_.ep.stochastic = 0; options_.console_mode = 0; - ts = extended_path([],100); + ts = extended_path([],1000); + + options_.ep.stochastic = 1; + sts = extended_path([],1000); + figure(1) plot(ts(2,:)-ts(4,:)); + figure(2) + plot(sts(2,:)-sts(4,:)); + + figure(3) + plot(sts(2,:)-ts(2,:)) + @#else shocks;