Sauter la navigation

Paramètres du compte.

Topic

Frequency Response of Filter

Page d'accueil ' Communauté ' FPScript ' Réponse en fréquence du filtre

Étiqueté : 

Voir les messages de 2 - 1 à 2 (sur un total de 2)
  • Auteur
    Messages
  • #33634
    Jonathan Smith
    Participant

    Hi,

    how can I calculate the frequency response (e.g. magnitude) of specific filter coefficients in FPScript? For example: Simpson Integral Filter with coefficients b = (1/3, 4/3, 1/3) and a = (1, 0, -1).

    Thanks in advance.

    Jon

    #33635
    Patrik Stilgenbauer
    Participant

    Dear Jon,

    you can use the AmplitudeResponse() and the PhaseResponse() functions to calculate the frequency response corresponding to a set of filter coefficients. E.g. magnitude of Simpson Integral filter:

    Dim filterCoef = List("b", {1/3, 4/3, 1/3}, "a", {1, 0, -1})
    AmplitudeResponse(filterCoef)

    See attachment for the visualisation in a diagram.

Voir les messages de 2 - 1 à 2 (sur un total de 2)
  • Vous devez être connecté pour répondre à ce sujet.