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

paradigm.h

Blame
  • paradigm.h 1.38 KiB
    /*  paradigm.h
    
        Mark Woolrich, FMRIB Image Analysis Group
    
        Copyright (C) 1999-2000 University of Oxford  */
    
    /*  CCOPYRIGHT  */
    
    #if !defined(__paradigm_h)
    #define __paradigm_h
    
    #include <iostream>
    #include <fstream>
    #include "newmatap.h"
    #include "newmatio.h"
    #include <string>
    
    using namespace NEWMAT;
    namespace FILM {
      
      class Paradigm
        {
        public:
    
          Paradigm() :
    	designMatrix(),
    	tcontrasts(0,0),
    	fcontrasts(0,0)
    	{}
     
          const Paradigm& operator=(Paradigm& par)
          {
    	designMatrix = par.designMatrix;
    	tcontrasts = par.tcontrasts;
    	fcontrasts = par.fcontrasts;
    	return *this;
          }
    	
          Paradigm(Paradigm& par) { operator=(par); }
    
          // getters and setters:
          Matrix& getDesignMatrix() { return designMatrix; }
          void setDesignMatrix(const Matrix& pdesignMatrix) { designMatrix = pdesignMatrix; }
    
          Matrix& getTContrasts() { return tcontrasts; }
          Matrix& getFContrasts() { return fcontrasts; }
          //void setContrasts(const Matrix& pcontrasts) { contrasts = pcontrasts; }
    
          // useful functions:
          void load(const string& p_paradfname, const string& p_tcontrastfname, const string& p_contrastfname, bool p_blockdesign, int p_sizets);
    
          static void read_vest_waveform(string p_fname, Matrix& p_mat);
    
          ~Paradigm() {}
     
        private:
          
          Matrix designMatrix;
          Matrix tcontrasts;
          Matrix fcontrasts;
        };
    
    }
    
    #endif