Class Statistic


  • public class Statistic
    extends java.lang.Object
    Create new statistic.
    Author:
    K.Jaensch, klausj@phonetik.uni-muenchen.de
    • Field Detail

      • framePosition

        public long framePosition
        Start position of corresponding audio buffer.
      • channels

        public int channels
        Number of channels of the audio data.
      • frames

        public int frames
        Number of frames.
      • maxValue

        public float[] maxValue
        The maximum amplitude in the buffer.
      • minValue

        public float[] minValue
        The minimum amplitude.
      • linMinLevel

        public float[] linMinLevel
        Normalized (0.0 - 1.0) linear minimal level.
      • linMaxLevel

        public float[] linMaxLevel
        Normalized (0.0 - 1.0) linear maximal level.
      • logMinLevel

        public float[] logMinLevel
        Normalized minimum logarithmic level.
      • logMaxLevel

        public float[] logMaxLevel
        Normalized maximum logarithmic level.
    • Constructor Detail

      • Statistic

        public Statistic()
        Creates new statistic object.
      • Statistic

        public Statistic​(int channels)
        Creates new statistic object.
        Parameters:
        channels - number of audio channels
    • Method Detail

      • toString

        public java.lang.String toString()
        String representation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        representation
      • getChannels

        public int getChannels()
        Get number of channels.
        Returns:
        channels
      • getFramePosition

        public long getFramePosition()
        Get frame position.
        Returns:
        frame position
      • getFrames

        public int getFrames()
        Get number of frames.
        Returns:
        frames
      • getLinMaxLevel

        public float[] getLinMaxLevel()
        Get maximum level.
        Returns:
        maximum level
      • getLinMinLevel

        public float[] getLinMinLevel()
        Get minimum level.
        Returns:
        minimum level
      • getLogMaxLevel

        public float[] getLogMaxLevel()
        Get logarythmic maximum level.
        Returns:
        log. maximum level
      • getLogMinLevel

        public float[] getLogMinLevel()
        Get logarythmic minimum level.
        Returns:
        log. minimum level
      • getMaxValue

        public float[] getMaxValue()
        Get maximum value.
        Returns:
        max value
      • getMinValue

        public float[] getMinValue()
        Get minimum value.
        Returns:
        min value
      • setChannels

        public void setChannels​(int i)
        Set number of channels.
        Parameters:
        i - number of channels
      • setFramePosition

        public void setFramePosition​(long l)
        Set frame position.
        Parameters:
        l - new frame position
      • setFrames

        public void setFrames​(int i)
        Set numbner of frames.
        Parameters:
        i - number of frames
      • setLinMaxLevel

        public void setLinMaxLevel​(float[] fs)
        Parameters:
        fs -
      • setLinMinLevel

        public void setLinMinLevel​(float[] fs)
        Parameters:
        fs -
      • setLogMaxLevel

        public void setLogMaxLevel​(float[] fs)
        Parameters:
        fs -
      • setLogMinLevel

        public void setLogMinLevel​(float[] fs)
        Parameters:
        fs -
      • setMaxValue

        public void setMaxValue​(float[] fs)
        Parameters:
        fs -
      • setMinValue

        public void setMinValue​(float[] fs)
        Parameters:
        fs -