Changeset 664d021 in tol


Ignore:
Timestamp:
Nov 20, 2008, 5:04:40 PM (18 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
f9ee626
Parents:
af055cb
Message:

At first iteration of Logit is B=0 and so p=X*B=0

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@203 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/bmath/bstat/logit.cpp

    raf055cb r664d021  
    7474  clock_t tm_1, tm_0 = BTimer::Clocks();
    7575  BReal tm_dif;
     76
    7677  for(iter=0; iter<BDat::MaxIter(); iter++)
    7778  {
    7879    H_.SetAllValuesTo(0);
    7980    G.SetAllValuesTo(0);
    80     p = X*B;
     81    if(iter==0)
     82    {
     83      p.SetAllValuesTo(0);
     84    }
     85    else
     86    {
     87    //Std(BText("\nTRACE Logit B=\n")+B.Name());
     88    //Std(BText("\nTRACE Logit X=\n")+X.Name());
     89      p = X*B;
     90    //Std(BText("\nTRACE Logit p=\n")+p.Name());
     91    }
    8192    oldLlh = lnLikelyhood;
    8293    lnLikelyhood=0;
Note: See TracChangeset for help on using the changeset viewer.