Xu Cui

 

   



544 Stories by Xu Cui

Noise removal in NIRS

Noise removal methods in NIRS can be divided into 4 categories: reducing noise based on its temporal characteristics: The instrument noise is usually in the high frequency band and thus can be removed by band pass filtering. Band pass filtering can a
0 41 sec read

GMail Advanced Search

As I have quite some emails (>13000) in gmail, searching more efficiently becomes a necessity. Fortunately gmail offers some advanced search syntax. http://mail.google.com/support/bin/answer.py?hl=en&answer=7190 Search emails with attachment f
0 19 sec read

Just became a new dad

I just became a new father. My daughter Iris was born 4 days ago. Currently sleep deprived …
5 3 sec read

3D Rotation

Assume you have a vector (x,y,z) and you want to rotate it to, say x-axis, you can multiply the rotation matrix to the vector. First, make the vector a column vector and append 1 to the end. It becomes a 4×1 matrix: v = x y z 1 Then, convert the
0 46 sec read

The power of words

Several years ago in San Diego I was in a friend’s car when he hit the car in front. The accident was mild and nobody was injured. After the two cars pulled over, I was wondering what the other driver would say. He said, “I am sorry to me
0 43 sec read

Reference slice in slice timing in SPM

I saw at least two web pages saying that the reference slice can be chosen during slice timing correction. For example, http://www.fil.ion.ucl.ac.uk/spm/doc/manual/spatial.htm. I disagree. Let’s take the first volume as example. Assume TR=2 and
7 1 min read

Some formulas of linear regression

y: dependent variable X: independent variable r: residual $$y=X\beta+r$$ $$\beta=inv(X’*X)*X’*y$$ $$\sigma^2=r’*r/df$$ $$df=N-rank(X)$$ $$\sigma_\beta^2=\sigma^2inv(X’X)$$ $$T_\beta=\beta/\sigma_\beta$$ $$contrast variance = c
0 14 sec read

spm_get, spm_select, and char

The mostly used functions I use in SPM is spm_get (for spm2) and spm_select (spm5 and 8).  These two functions are used to get files (usually image files). Frankly speaking I like spm_get much better as it’s intuitive and easy to use. Here is h
2 1 min read

FSL environment setting

setenv FSLDIR /fs/quarry/cuixu/fsl41/fsl source ${FSLDIR}/etc/fslconf/fsl.csh setenv PATH ${FSLDIR}/bin:${PATH}
0 3 sec read