OK, so the median is based on data we don't see, and we just pick the middle without regard to any order but the given one. But I still don't understand.
4 makes sense for cat, being (2+6)/2, but how does one get 3 for dog? That's the last element, not the middle. I wondered if maybe they were line numbers instead, but that doesn't make sense either.
The median is the middle element of the list after that list has been sorted.
Hi ,
I have a requirement to split the record based on particular match using UNIX.
Case1:
Input Record :
10.44.48.63;"Personals/Dating;sports";1441
Output Records :
10.44.48.63;Personals/Dating;1441;Original
10.44.48.63;sports;1441;Dummy
Case2:
Input Record : ... (5 Replies)
Hi All,
I have some data like below.
Step1,Param1,Param2,Param3
1,2,3,4
2,3,4,5
2,4,5,6
3,0,1,2
3,0,0,0
3,2,1,3
........
so on
Where I need to find the median(arithmetic) of each column from Param1...to..Param3 for each set of Step1 values.
(Sort each specific column, if the... (5 Replies)
I have input file like this
update tablename set column1='ABC',column2='BBC' where columnx=1 and columny=100 and columnz='10000001'
update tablename set column1='ABC',column2='BBC',column3='CBC' where columnx=1 and columny=100 and columnz='10000002'
update tablename set column1='ABC' where... (1 Reply)
Trying to match $2 in original_targets with $2 of new_targets . If the two numbers match exactly then a match.txt file is outputted using the information in the new_targets in the beginning 4 fields $1, $2, $3, $4 and value of $4 in the original_targets . If there is "No Match" then a no... (2 Replies)
Trying to match $1 of target.txt to $5 of file.txt. If there is a match then in an output.txt file $1,$1 (row underneath),$6,$4,$7 from file.txt are printed on the same line as $1 of target.txt. The input is from excel and the output should be tab-deliminated. Thank you :).
target.txt... (2 Replies)
I am trying to merge two lines to one based on some matching condition.
The file is as follows:
Matches filter:
'request ', timestamp, <HTTPFlow
request=<GET:
Matches filter:
'request ', timestamp, <HTTPFlow
request=<GET:
Matches filter:
'request ', timestamp, <HTTPFlow
... (8 Replies)
I am trying to create a cronjob that will run on startup that will look at a list.txt file to see if there is a later version of a database using database.txt as the source. The matching lines are written to output.
$1 in database.txt will be in list.txt as a partial match. $2 of database.txt... (2 Replies)
Hi,
i have 2 files , the data i need to match is in masterfile and i need to pull out column 3 from master if column 1 and 2 match and output entire row to new file
I have tried with join and awk and i keep getting blank outputs or same file
is there an easier way than what i am... (4 Replies)
Discussion started by: axis88
4 Replies
LEARN ABOUT DEBIAN
gpiv_errvec
GPIV_ERRVEC(1) General Commands Manual GPIV_ERRVEC(1)NAME
gpiv_errvec - Searches erroneous vectors in a PIV data file and substitutes with new values.
SYNOPSIS
gpiv_errvec [-a] [-b ] [-g][-h] [-h | --help] [-i | --image_type S] [-n N] [--no_b ] [-p | --print] [-r N] [-s N] [-t F] [-u | --surround]
[-v | --version] [filename] < stdin > stdout
DESCRIPTION
gpiv_errvec searches erroneous outliers in a PIV data stream and substitutes with new values, if possible, i.e. if (the majority) of its
surroundings are non-erroneous. Evaluation of erroneous vectors is done by looking up the Signal to Noise Ratio (SNR) value in the PIV
data file or by calculating the median residu of the vector with its surroundings. A new displacement is obtained by the mean value of the
surrounding values or by the location of the next higher peak in the covariance function.
PIV data validation is not needed anymore while this is now done during image interrogation with gpiv_rr. Though using gpiv_errvec will not
harm.
The configuration parameters (containing the VALID key) may be overruled by the command line options, as explained below.
Options-a Automatic threshold; calculates threshold value from residu histogram.
-b Calculate statistics of the median residues and print a histogram of N bins.
-g Graphical visualization of residu statistics with gnuplot (needs filename). -b is not required as this option will be set automati-
cally.
-h | --help
On-line help.
-i | --image_type S
Image type or format to be used if particle displacements will have to be re-estimated at the next highest correlation peak. S may
be png, tif, gif, bmp, pgm, r or gpi. Default: png.
-n N Defines number of histogram of bins N for -b or -a
--no_b N
suppresses printing median residu histogram
-p | --print
Print parameters, command line options and eventually used input and output filenames to stdout. The output is identic of file-
name.par, in case filename is used.
-r N Erroneous vector determined by SNR of the correlation function (N = 0), median residu (N = 1) or normalized median (N = 2), i.e. the
ratio between median residu with current datapoint included and between median residu of surroundigs (with datapoint excluded).
-s N Substitution of the erroneous vectors by (N = 0) nothing, the local mean from the surrounding values (N = 1), median (N = 2) or next
highest covariance peak (N = 3, needs filename).
-t F Threshold value F of SNR or median residu to determine validity of particle displacement.
-u | --surround
Odd number representing the surrounding grid points to be used for local mean and median values.
-v | --version
Print version information on standard output, then exit successfully.
filename
Full name of PIV data file for input. Substitutes stdin and stdout. Output will be written to filename.erv.piv. The parameters will
be written or appended to filename.par and may be used for future use by including them in ./gpivrc. If particle displacements will
have to be re-estimated at the next highest correlation peak, filename is required.
SEE ALSO
gpivtools
AUTHOR
Gerber Van der Graaf
BUGS
The program has been tested for artificial generated DPIV images. So far, no serious bugs have been found.
23 May 2005 GPIV_ERRVEC(1)