search for: update_loglik

Displaying 1 result from an estimated 1 matches for "update_loglik".

2009 Sep 23
1
Strange behaviour with global variable in C
...ihood. In an old version of the program I initialized this as double loglik = -999999999999999 and in current versions I initialize this as double loglik = 0.0 and long sequences of 9s do not appear anywhere in the program now (I confirmed this using the grep command in bash) A function called update_loglik() exists in the file loglik.c and so myProgram.c includes the line #include "loglik.c" prior to the main() function. The first line in the function update_loglik() is loglik = 0.0; and then later in the function there is a loop containing the line loglik += some_value_corresponding_...