A method for filtering, said method being carried out by means of a data processing device (25) and comprising the steps of receiving a time dependent measurement signal (d (n)) obtained from a pressure sensor (4a-4c ) in a system containing fluid associated with a generator of the first pulse (3) and a generator of the second pulse (3 '), the pressure sensor (4a-4c) being arranged in the system containing fluid to detect a first pulse from the generator of the first pulse (3) and a second pulse from the generator of the second pulse (3 '), obtain a profile of the first pulse (u (n)), and filter the measurement signal (d (n)) in time domain, using the profile of the first pulse (u (n)) and an adaptive filter structure, to essentially eliminate the first pulse while retaining the second pulse, characterized in that the profile of the first pulse (u (n )) is obtained so that a predicted temporal signal profile of The first pulse, and the step of filtering the measurement signal (d (n)) includes the supply of the measurement signal (d (n)) and the profile of the first pulse (u (n)) as inputs to a Adaptive filter structure configured to provide an error signal data (e (n)) in which the first pulse has been essentially eliminated, while the second pulse has been maintained.Un método para el filtrado, realizándose dicho método mediante un dispositivo de procesamiento de datos (25) y comprendiendo las etapas de recibir una señal de medida dependiente del tiempo (d (n)) obtenida a partir de un sensor de presión (4a-4c) en un sistema que contiene fluido asociado con un generador del primer pulso (3) y un generador del segundo pulso (3 '), estando el sensor de presión (4a-4c) dispuesto en el sistema que contiene fluido para detectar un primer pulso procedente del generador del primer pulso (3) y un segundo pulso procedente del generador del segundo pulso (3 '), obtener un perfil del primer pulso (u(n)), y filtrar la señal de medida (d (n)) en el dominio del tiempo, utilizando