This folder contains the general source code, shared library and executable version of LTRS. 

Code for LTRS simulations of the experiments is in the relevant Experiment folder.

Run ./ltrs or ltrs.exe from command line, with 4 parameters (if run with no parameters, will prompt for them):

This version is updated from the 2011 version to report P(all x = 2) as P(KNOWN) for identification when the target and foil match.
The below instructions have also undergone some corrections.

For PRIMING:
./ltrs prime paramfile inputfile outputfile
prime means literally the word prime
paramfile should be the name of a file containing alpha sigma lambda o eta B in that order
inputfile should be rows of target relatedprime unrelatedprime duration
outputfile should be the name of the file you'd like filled with rows from inputfile with an extra column of containing PRIMING

For IDENTIFICATION:
THIS GIVES P(KNOWN) NOT P(CORRECT) !!!
./ltrs id paramfile inputfile outputfile
id means literally the word id
paramfile should be the name of a file containing alpha sigma lambda beta1 beta2 etc... in that order
inputfile should be rows of foil target X(filler) duration
outputfile's should be the name of the file you'd like filled with rows from inputfile with an extra column of containing proportion KNOWN
Additional calculations are needed to include guessing.
Run different target lengths separately if you want different betas for each length.

