Table of Contents


NAME

data.col:rms - return rms value of column (Decida Procedure)

USAGE

          data.col:rms d column {time TIME}

ARGUMENTS

d data-object name
column column for rms calculation
time time column (default = TIME)

RESULTS

return rms value of the specified column rms = sqrt(integ(column^2 * dt)/(t2-t1))

EXAMPLE-CALL

            d.col rms VOUT Time

NOTES

previously, rms returned sqrt(sum(column^2)/N) which is the result for constant time-steps:
                set n [$d length]
                foreach stat [$d.col stats $column] {
                  set [lindex $stat 0] [lindex $stat 1]
                }
                return [expr sqrt(1.0*$sos/$n)]

AUTHOR

Richard Booth

Table of Contents