onepole

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
BUGS
COPYRIGHT
AUTHOR

NAME

onepole - function to filter a signal with a one pole ARMA operator.

SYNOPSIS

int onepole( int npts, float fsamin, float tcond, float s1[], float s2[] )

DESCRIPTION

Basic Seismic Utilities (BSU) function filters a signal with a one pole filter. The pole is on the real axis in the Z-plane. The ARMA operator is realized in the usual way with a feedback compoonent (operator is minimum phase).
C-language version
.

Arguments
npts (int)

Number of samples in the signal.

fsamin (float)

Sample interval in seconds.

tcond (float)

Time constant for the operator in seconds.

a=exp(-fsamin/tcond)

s2[j]=s1[j] + a*s2[j-1]
s1[] (float)

Input signal

s2[] (float)

Output signal NOTE: For an example, see this function used in bagc.c

SEE ALSO

bagc(1)

BUGS

No known bugs

COPYRIGHT

Copyright © 2017 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. <pm@cgiss.boisestate.edu>