Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2008 Feb;40(1):21-32.
doi: 10.3758/brm.40.1.21.

RAP: a computer program for exploring similarities in behavior sequences using random projections

Affiliations

RAP: a computer program for exploring similarities in behavior sequences using random projections

Vicenç Quera. Behav Res Methods. 2008 Feb.

Abstract

A computer program (RAP, for random projection) for exploring similarities between and within sequences of behavior is presented. Given a time window of a sequence, the program calculates a signature, a real-valued vector that is a random projection of the contents of the window (i.e., the codes occurring within it and their relative location, or onset and offset times) into an arbitrary K-dimensional space. Then, given two different time windows from the same sequence or from different sequences, their similarity is computed as an inverse function of the Euclidean distance between their respective signatures. By defining moving (overlapped or not overlapped) windows along each sequence and calculating similarities between every pair of windows from the two sequences, a map of similarities or possible recurrent patterns is obtained; the RAP program represents them as gray-level lattices, which are displayed as mouse-sensitive images in an HTML file. Computation of similarities is based on the random projection method, as presented by Mannila and Seppänen (2001), for the analysis of sequences of events. The program reads sequence data files in Sequential Data Interchange Standard (SDIS) format (Bakeman Quera, 1992,1995a).

PubMed Disclaimer

Publication types

LinkOut - more resources