Giter Club home page Giter Club logo

eyelinkanalysis's Introduction

#EyeLinkAnalysis

There are two steps:

  1. Convert .edf to .asc
  2. read data from desired time period for each trial

##step 1: It basically use a binary file (C++ program I think) from the manufacturer. The file is "edf2asc". Scottie has a matlab wrapper for that "Convert.m", but it requires Alex's library. A simple alternative for that is just to run "./edf2asc FilePath" in your terminal. It will generate a .asc file with the same name as the .edf file.

##step 2: Use "Read.m" to read the .asc file and output a ntrials X 1 structs cells. Each output struct will contain 4 field, in which t=time,d=pupil-diameter. In current setting, each field will be a n X 1 array. n = trial_duration_in_secs X 250, since we are recording with 250 Hz.

The usage for that function:

cOutput = Read(FilePath, 'start_code', % tiral_start_event%, 'end_code', % trial_end_event%);

just replace % tiral_start_event% and % trial_end_event% to the event names you defined for the beginning and end of the interested tracking period for each trial.

eyelinkanalysis's People

Contributors

bearsun avatar

Stargazers

Marvin Maechler avatar

Watchers

James Cloos avatar  avatar

Forkers

marvinmaechler

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.