Class Spectrum

java.lang.Object
math.Spectrum

public class Spectrum extends Object
This class perform spectral analysis and has also some useful functions for DSP
Author:
Federico Granata
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double[]
    periodogramOfReal(double[] data, int start, int n)
    periodogramOfReal return the periodogram of a real sequence.
    static double[]
    zeroPad(double[] data)
    given a sequence it return the same sequence padded with zeros to the nearest power of 2

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Spectrum

      public Spectrum()
  • Method Details

    • periodogramOfReal

      public static double[] periodogramOfReal(double[] data, int start, int n)
      periodogramOfReal return the periodogram of a real sequence.
      Parameters:
      data - the data sequence
      Returns:
      the spectrum
    • zeroPad

      public static double[] zeroPad(double[] data)
      given a sequence it return the same sequence padded with zeros to the nearest power of 2
      Parameters:
      data - the sequence to be padded
      Returns:
      the padded sequence