This directory contains raw distance measurements between one
Cricket v1 beacon and one Cricket v1 listener in a variety of 
places.  The objective is to measure Cricket v1's distance
measurement accuracy.

The raw data for each trial is logged in a separate .log file.
Each line in this file represents one distance sample from
the listener, as a result of receiving a RF+US "chirp" from
the Cricket beacon.  Each line has the following format:

<time> Beacon: <seqno> null <spaceid> 32 <dist> null null

where <time> is a long value in milliseconds
      <seqno> is sequence number (this is generated and 
              incremented at the listener so it should 
	      NOT be used to determine the loss rate due to 
	      corrupted beacon signal over the air).
      <spaceid> id of the beacon
      <dist>  measured distance (in Bodhi unit)
      
NOTE:  The <dist> value must be converted to cm unit by the
following equation:

<dist_cm> = <dist>*34449/15625 - 79.37

Each line in the SUMMARY file contains stats for a 
trial of experiment. The following fields are printed for
each line:

filename 
experiment location 
true separation distance between beacon and listener (in cm)
total samples collected
mean distance   (in cm)
mode distance   (in cm)
median distance (in cm)
min distance    (in cm)
max distance    (in cm)
stddev          (in cm)
100*stddev/mean (in cm)	   
percent error from true distance (measure-true)/true

proc.pl is a script that parses *.log file and produces the 
results in SUMMARY.
