org.mobicents.media.server.component.audio

Class GoertzelFilter



  • public class GoertzelFilterextends Object
    Author:
    kulikov
    • Constructor Summary

      Constructors 
      Constructor and Description
      GoertzelFilter()
      Creates a new instance of the Goertzel Filter.
      GoertzelFilter(int f, int N, double len)
      Creates a new instance of the Goertzel Filter for predefined frequency of the signal.
    • Method Summary

      Methods 
      Modifier and TypeMethod and Description
      doublegetPower(double[] signal, int offset)
      Calculates power of the specified frequence of the specified signal.
      doublegetPower(double f, double[] signal, int offset, int len, double scale)
      Calculates power of the specified frequence of the specified signal.
    • Constructor Detail

      • GoertzelFilter

        public GoertzelFilter()
        Creates a new instance of the Goertzel Filter.
      • GoertzelFilter

        public GoertzelFilter(int f,              int N,              double len)
        Creates a new instance of the Goertzel Filter for predefined frequency of the signal.
        Parameters:
        the - length of this signal is samples.
        len - the length of the signal is seconds.
        the - frequency of the signal.
    • Method Detail

      • getPower

        public double getPower(double f,              double[] signal,              int offset,              int len,              double scale)
        Calculates power of the specified frequence of the specified signal.
        Parameters:
        f - the frequence value.
        signal - sampled signal.
        offset - index of the first sample of the signal.
        len - the length of signal in samples
        scale - the length of signal in seconds
        Returns:
        the power of the specified frequency
      • getPower

        public double getPower(double[] signal,              int offset)
        Calculates power of the specified frequence of the specified signal.
        Parameters:
        signal - sampled signal.
        offset - index of the first sample of the signal.
        Returns:
        the power of the specified frequency

Copyright © 2016 TeleStax, Inc.. All Rights Reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14