Skip to content

At different stages of my research career, I programmed psychophysical experiments using C++, JavaScript, and various graphic libraries.

Notifications You must be signed in to change notification settings

louiskhchan/experiments

Repository files navigation

Experiments

I have programmed experiments for my research projects since my undergraduate thesis. In the good old days, I used Visual Basic. Then, I used C++ and libSDL so that my experiments could be run on my PC and the Macs in the lab. Later I switched to C++ and Direct2D for better graphic performance. During COVID-19, I moved my experiments online. At that time, JavaScript and the Canvas API of HTML5 have already become mature enough for decent graphic performance for psychophysical experiments, even on an online platform.

I ran numerous experiments and cannot upload all of them here. However, I may showcase one of them at each stage. I am sorry that not much explanation may be given here about each experiment -- they usually involve looking for a predefined target among other objects, and the participants have to press a specific key (on the keyboard or click the mouse) when they find it.

Dynamic visual search experiment

This is a class experiment I ran last year related to my recently published paper. In this experiment, you look for a green circle among circles of other colours. What is unique about this experiment is that the stimuli are dynamic and move in and out from the view. This mimics real-life search scenarios better than traditional research of the same kind. This experiment is programmed in JavaScript and Canvas.

[Code] [Online experiment]

Target prevalence effect experiment

This is an experiment I ran in 2017. I presented the results at the 2017 Vision Sciences Society meeting [abstract] [pdf]. This experiment studies how the frequency a target occurs would affect your decisions. Its result informs my later research on simulating human decisions using computer modelling techniques. This experiment is programmed in C++ with Direct2D.

[Code] [Windows x86 build]

Attentional capture experiment

This is an experiment I ran in 2010-2014, and its results were published in this paper. This experiment studies how a salient object may distract you from a visual search task. It is unique because it measures accuracy at threshold exposure instead of reaction time. This experiment is programmed in C++ with libSDL.

[Code] [Windows x86 build]

About

At different stages of my research career, I programmed psychophysical experiments using C++, JavaScript, and various graphic libraries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published