~ubuntu-branches/ubuntu/raring/voxbo/raring

« back to all changes in this revision

Viewing changes to qtvlsm/vbvlsm.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michael Hanke
  • Date: 2011-02-25 13:23:31 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110225132331-g2oxsilh28koblaz
Tags: 1.8.5~svn1246-1
New upstream code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
874
874
          res=calc_ttest(dv,bm);
875
875
        // not a permutation test, save everything
876
876
        if (permcount<2) {
877
 
          tmap.SetValue(i,j,k,res.first);
878
 
          res=t_to_p_z(res);
879
 
          pmap.SetValue(i,j,k,res.first);
880
 
          zmap.SetValue(i,j,k,res.second);
 
877
          tmap.SetValue(i,j,k,res.t);
 
878
          t_to_p_z(res);
 
879
          pmap.SetValue(i,j,k,res.p);
 
880
          zmap.SetValue(i,j,k,res.z);
881
881
        }
882
882
        // perm test with welch's, convert to z
883
883
        else if (mystat==id_welchs) {
884
 
          res=t_to_p_z(res);
885
 
          zmap.SetValue(i,j,k,res.second);
 
884
          t_to_p_z(res);
 
885
          zmap.SetValue(i,j,k,res.z);
886
886
        }
887
887
        // perm test with regular t-test, save t value
888
888
        else if (mystat==id_ttest) {
889
 
          tmap.SetValue(i,j,k,res.first);
 
889
          tmap.SetValue(i,j,k,res.t);
890
890
        }
891
891
      }
892
892
    }