statupd(3m)

NAME
statupd - Update statistics array

SYNOPSIS
[upd, hdg] = statupd(data, stat, options )

DESCRIPTION
Udates the current statistics array with the given subset of data. See stat(5m) for more information.

PARAMETERS

data
    Matrix (MxN) of N data for the M different variables.

stat
    Satitistics array (Mx7).

OPTIONS

'-hdg', hdg
    Non-NaN elements in vector hdg of length M specifiy the last value of heading,which is to be used to calculate the mean heading. This allow to calculate heading mean values accross the 360/0 point. Updated heading statistics is converted within 0 .. 360.

RETURNS

upd Statistics array updated with the data vector.

hdg optional
    Array with last value of heading,to be used for successive calls to this function. This output argument should be used if option -hdg is used.

SEE ALSO
flagdata(3m)stat(5m)statcalc(3m)statinit(3m)statlim(3m)stat_str(3m)statupd(3m)

AUTHORS
Pierre Jaccard, Geophysical Institute, University of Bergen, 1999