Skip to content
Snippets Groups Projects
Select Git revision
  • 59760c69591df6e3c324c5a6c9488678be7fe65c
  • master default protected
  • enh/surfprc
  • ukbiobankv1.5
  • newnew
  • cvsHEAD protected
  • fsl-5_branch
  • osx-109-branch
  • oldOptionsFilm
  • originalSurfaceFilm
  • universal_branch
  • fsl-3_3-branch
  • fsl-3_2
  • release-branch
  • 2111.1
  • 2111.0
  • 2007.0
  • 2004.0
  • cvsFINAL protected
  • FSL6-0-0
  • newStable
  • FinalFive
  • fsl-5_0_11
  • stable
  • fsl-5_0_10
  • fsl-5_0_9
  • fsl-5_0_8
  • fsl-5_0_7
  • fsl-5_0_5
  • fsl-5_0_6
  • root-osx-109-branch
  • newnew_branchpoint
  • fsl-5_0_0
  • fsl-5_0_1
34 results

glm.cc

Blame
  • glim.h 1.46 KiB
    /*  glim.h
    
        Mark Woolrich, FMRIB Image Analysis Group
    
        Copyright (C) 1999-2000 University of Oxford  */
    
    /*  CCOPYRIGHT  */
    
    #include <iostream>
    #include <fstream>
    #define WANT_STREAM
    #define WANT_MATH
    
    #include "newmatap.h"
    #include "newmatio.h"
    #include "miscmaths/volumeseries.h"
    #include "miscmaths/volume.h"
    
    using namespace NEWMAT;
    using namespace MISCMATHS;
    namespace FILM{
    
    #if !defined(__glim_h)
    #define __glim_h
     
    #define BATCHSIZE 50
    
      class Glim
        {
        public:
          Glim(VolumeSeries& p_y, const Matrix& p_x); 
    
          void Save();
    
          VolumeSeries& ComputeResids();      
          void ComputePes();
          void SetVrow(const ColumnVector& p_vrow, const int ind);
          void SetGlobalVrow(const ColumnVector& p_vrow);
          void ComputeSigmaSquared(const int ind);
          void UseGlobalVrow();
    
        private:
          Glim();
          Glim(const Glim&);
          Glim& operator=(const Glim& p_glim);
          
          void SetCorrection(const Matrix& corr, const int ind);
          void ConstructV(const ColumnVector& p_vrow);
          void setData(VolumeSeries& p_y) { y = p_y; }
    
          // y = bx + r
          VolumeSeries& y;
          const Matrix& x;
    
          int numTS;
          int sizeTS;
          int numParams;
    
          VolumeSeries r;
          Matrix pinv_x;
          Matrix V;
          Matrix RV;
          Matrix RMat;
    
          int batch_size;
    
          // Data to be saved:
          Matrix corrections;
          Matrix b;
          Volume sigmaSquareds;
          float dof;
        };
    
    
    #ifndef NO_NAMESPACE
           }
    #endif
    
    #endif