draw_prior_density.m

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

draw_prior_density.m

Postby bruzzle » Sun Dec 25, 2011 11:49 pm

Hi,

I have a specific question about draw_prior_density.m. Towards the end of the .m file I see the following block (this is for version 4.2.1):
Code: Select all
k = [1:length(dens)];
if pshape(indx) ~= 5
    [junk,k1] = max(dens);
    if k1 == 1 || k1 == length(dens)
        k = find(dens < 10);
    end
end


What does the line k = find(dens < 10) mean? Is 10 an arbitrary number with no significance? Or is it something that is coming from the properties of the distributions?

Thank you very much in advance,

B
bruzzle
 
Posts: 13
Joined: Fri Apr 30, 2010 11:52 am

Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests