Table of Contents


NAME

data.col:equally-spaced - examines data column x to see if it is equally-spaced (Decida Procedure)

USAGE

          data.col:equally-spaced d col {threshold 1e-6}

ARGUMENTS

d data object
col the column to examine
threshold if absolute differences between all steps are less than the specified threshold times the first step size, steps are regarded as equal. default=1e-6

RESULTS

returns 1 if the column is equally-spaced, or 0 otherwise
if data length is less than 3, returns 1

EXAMPLE-CALL

             if {[d.col equally-spaced x]} {
               set dx [expr [d get 1 x] - [d get 0 x]]
             }

AUTHORS

Richard Booth, Michael McLennan, George Howlett

Table of Contents