Can you find any pattern in the two signals, green and blue? The blue signal is the brain wave (measured by NIRS) of a person when he is pressing some buttons (the timing of button pressing is shown i
Wavelet transform coherence (WTC) is a method for analyzing the coherence and phase lag between two time series as a function of both time and frequency (Chang and Glover 2010). Here I played with it
SVM is mostly commonly used for binary classifications. But one branch of SVM, SVM regression or SVR, is able to fit a continuous function to data. This is particularly useful when the predicted varia
Update 2021/2/27: If you find griddata3 not working, try to change griddata3 to griddata. I was asked where to get nirs2img script. Here it is. The download link is at the bottom of this article. nirs2img is to create an image file from the input data. Then theimage file can be viewed by a
lazy quantifier: Add a question mark (?) after any quantifier to change it to what is known as a lazy quantifier. For example, the following regular expression, which uses the lazy *? quantifier, matches <p> followed by the minimum number of ch
In my datagrid, even when I set the width of some columns explicitly, they always change in an unpredictable way when I (1) resize my window (2) minimize and maximize the window. I finally find the cause: it’s because I used “minWidthR
Assume you have a presentation and you want it to stay on the screen for 10 seconds, you may write code something like pause(10) or WaitSecs(10) It’s fine except you can do nothing within those 10s. What if you want to do something else during
Assume test1.jpg is the original file and test1_thumb.jpg is the thumbnail file to be created. The width or height of the thumbnail is of maximal size 100. private function loadBMP():void { loader.contentLoaderInfo.addEventListener(Event.COMPLETE, on
convert between different image formats strip skull (FSL bet, or Bet for gui) bet brain.nii brain_noskull.nii register to a standard brain (FSL flirt, or Flirt for gui) Select avg152T1_brain.img as reference, use rigid body (6 parameters) A mat file
Let’s say you want to upload a file to your server with your AIR program (using File.upload). On the server side you have a php script to handle the file uploading. A very common mistake is that the name of the file field in your AIR (by defaul
Check out Near infrared spectroscopy (NIRS) Lab I take charge of: http://spnl.stanford.edu/tools/nirsCIBSR/nirsHome.htm NIRS allows you to measure neural activities on the surface of the brain. Some labs use NIRS to do brain-computer interface, i.e.
Let’s say you have a Label and you want to show this label only when condition == true, you may do this: <mx:VBox> ... other components ... <mx:Label text="this is label" visible="{condition}"/> ... other compone