Package gpl.whiten

Class WhitenMatrix

java.lang.Object
gpl.whiten.WhitenMatrix

public class WhitenMatrix extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    WhitenMatrix(int nRows, int nTimeBins, double whitenFac)
    Create a standard whitener for real data.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addData(double[] dataCol)
    Add data to the whiteners sort group.
    static double
    quickCentralMean(double[][] array)
    find the central mean of all data in a 2D array.
    double[]
    whitenData(double[] dataCol)
    Whitens a column of data points.

    Methods inherited from class java.lang.Object

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

    • WhitenMatrix

      public WhitenMatrix(int nRows, int nTimeBins, double whitenFac)
      Create a standard whitener for real data.
      Parameters:
      nRows - number of data rows (number of frequency bins)
      nTimeBins - number of time bins (history lenght of whitener)
      whitenFac - whitening factor (default to 1)
  • Method Details

    • addData

      public void addData(double[] dataCol)
      Add data to the whiteners sort group.
      Parameters:
      dataCol - array of data.
    • whitenData

      public double[] whitenData(double[] dataCol)
      Whitens a column of data points. Does not add to the sorted data, call addData before or after if you need to do that.
      Parameters:
      dataCol - column of data.
      Returns:
      whitened data.
    • quickCentralMean

      public static double quickCentralMean(double[][] array)
      find the central mean of all data in a 2D array.
      Parameters:
      array -
      Returns: