Neural Information Processing

Psignifit - Toolbox for Matlab 5 and up

Overview

The toolbox is in two parts:

The toolbox m-files and pre-compiled versions of the engine can be obtained on the download page. Release notes and version history can be found here.

Compatibility

Most of the m-files require Matlab version 5 and up (they were developed on versions 5.2, 5.3 and 6.1). They are text files written in the Matlab script language so they should, in theory, work on Matlab on any platform. The mex-file has to be compiled from the C source for your particular platform: pre-compiled versions for some platforms can be found on the download page - otherwise, consult the instructions for compiling from the source code.

Matlab 5.1 users: many highly useful functions are lacking in Matlab 5.1, having only been introduced in version 5.2. I have programmed around these where I can, and released m-file patches in the few cases where this was too inconvenient. I have never tested the toolbox on Matlab version 5.0.

Installation

Download the toolbox archive and unpack it - this should give you a directory called psignifit. Ensure that this directory is listed on the Matlab path, so that Matlab can find it (typing pathtool at the Matlab command prompt gives you a dialog for adding directories to your path - click save in order to preserve the new setting for future sessions). When installing a new Matlab toolbox, it is a good idea to ensure that it is listed first on the path. This will ensure that, in the case of any name conflicts with other third-party toolboxes, the newly installed functions are called in preference to the old. (Later, if you discover a name conflict and wish to continue using both toolboxes, you will either have to start renaming functions, or add and remove one of the toolboxes from the path each time the need arises. There is no way for third-party developers to know whether they are conflicting with each other in this way, and unfortunately Matlab has no direct or easy way to resolve conflicts.)

Next, you need to ensure you have the mex-file: it is a binary file called psignifit.dll on Windows, psignifit.mexglx on Linux, psignifit.mexsol on SunOS, psignifit.mexmac on MacOS X, or just psignifit.mex on Matlab 5.x and earlier (e.g. on the old MacOS). If the mex file for your platform is not already included in the downloaded archive, either download a precompiled older version and unpack it, or compile the new version it from the C source code, which is included in the toolbox. The newly downloaded or compiled mex file also needs to go into one of the directories on the path (for example, the psignifit toolbox directory) so that Matlab can find it.

Quick-Start

The psignifit engine on its own does not interface in a very convenient way with Matlab. The function pfit is designed to be a front-end to the engine, preparing the inputs and collecting and structuring the outputs. To get started, start Matlab and try the following:

	dat = readdata('example_data.txt') 	
pfit(dat)

Additional options may be specified on the command line, e.g.:

	pfit(dat, 'shape', 'weibull', 'n_intervals', 1, 'runs', 999, ...)

See the documentation psych_options.m for a list of available options, and refer to psych_glossary.m for definitions and explanations where necessary. The tutorial script psych_tool_demo.m begins to break down the operation of pfit, demonstrating the use of some of the toolbox functions.

Refer to psignifit/contents.m for a full list of available functions (type helpwin psignifit to browse the toolbox from within Matlab).