fmed

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
BUGS
COPYRIGHT
AUTHOR

NAME

fmed - function which performs a bubble sort on a vector, and returns median value.

SYNOPSIS

call fmed(x, npts )

DESCRIPTION

Basic Seismic Utilities (BSU) modifies the input vector, x, by a bubble sort. Returns the middle (median) amplitude value.
Fortran Version
.

Arguments
x (float)

Vector array of samples to be sorted by amplitude.

npts (int)

Number of samples in a trace

SEE ALSO

bmed(1)

BUGS

No known bugs.

COPYRIGHT

Copyright © 2024 by Paul Michaels

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

AUTHOR

P. Michaels, PE. <[email protected]>