Diff for "KristjanKalm/poscode" - MRC CBU Imaging Wiki
location: Diff for "KristjanKalm/poscode"
Differences between revisions 1 and 2
Revision 1 as of 2016-10-18 11:24:12
Size: 1119
Editor: kalm
Comment:
Revision 2 as of 2017-04-20 10:52:39
Size: 35
Editor: kalm
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
[[attachment:ov_sim.tar|TAR file]] including the code and the data.

Notes:

It is a self-containing MATLAB function that has been tested on MATLAB 2015a.

The ''Model ''parameter (line 13) specifies which scenario to run. The models differ in terms of whether the data gets z-scored in the process and whether the voxels have "positional sensitivity". The positional sensitivity is actually always explicitly modelled, however, for the cases which it's not needed, the variance of the positional likelihood function is set an absurdly great number (e.g. 10^10) so that in practice the voxels respond uniformly to all positions.

For LDA it currently uses the MATLAB's own ''fitdiscr'' function which is absent from MATLAB 2013 and below. This also means that the LDA function doesn't run on Octave. You can change the LDA function with [[https://www.google.co.uk/search?q=linear+discriminant+analysis+matlab+code|any of the freely available ones on the web]].

Similarly, z-scoring is done with MATLAB's ''zscore ''function from the Statistics Toolbox, which might not be available for all MATLAB versions.
https://github.com/kkalm/poscode

CbuImaging: KristjanKalm/poscode (last edited 2017-04-20 10:52:39 by kalm)