Class ZeroCrossingStats

java.lang.Object
clickDetector.ClickClassifiers.basicSweep.ZeroCrossingStats

public class ZeroCrossingStats extends Object
Simple container for a few zero crossing parameters. Will extract these from zero crosing data sent to the constructor.
Author:
Doug Gillespie
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    double
    Zero crossing end frequency from fit
    int
    Number of zero crossings
    double
    Zero crossing start frequency from fit.
    double
    Zero crossing sweep rate in Hz/second
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    Default constructor, does nothing.
    ZeroCrossingStats(double[] zeroCrossings, double sampleRate)
    Constructor which automatically extracts parameters from some zero crossing data
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    double
    Method to return the mean time between zero crossings (in milliseconds) Mike Oswald 2015/05/17
    double
    Method to return the median time between zero crossings (in milliseconds) Mike Oswald 2015/05/17
    double
    Method to return the variance of the time between zero crossings (in milliseconds^2) Mike Oswald 2015/05/17
    double[]
    Method to return the zero crossing data Mike Oswald 2015/05/17

    Methods inherited from class java.lang.Object Link icon

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details Link icon

    • nCrossings Link icon

      public int nCrossings
      Number of zero crossings
    • sweepRate Link icon

      public double sweepRate
      Zero crossing sweep rate in Hz/second
    • startFreq Link icon

      public double startFreq
      Zero crossing start frequency from fit.
    • endFreq Link icon

      public double endFreq
      Zero crossing end frequency from fit
  • Constructor Details Link icon

    • ZeroCrossingStats Link icon

      public ZeroCrossingStats()
      Default constructor, does nothing.
    • ZeroCrossingStats Link icon

      public ZeroCrossingStats(double[] zeroCrossings, double sampleRate)
      Constructor which automatically extracts parameters from some zero crossing data
      Parameters:
      zeroCrossings - array of zero crossing times in samples
      sampleRate - sample rate
  • Method Details Link icon

    • getZeroCrossings Link icon

      public double[] getZeroCrossings()
      Method to return the zero crossing data Mike Oswald 2015/05/17
      Returns:
      the zeroCrossings
    • getMeanTime Link icon

      public double getMeanTime()
      Method to return the mean time between zero crossings (in milliseconds) Mike Oswald 2015/05/17
      Returns:
      the meanTime
    • getMedianTime Link icon

      public double getMedianTime()
      Method to return the median time between zero crossings (in milliseconds) Mike Oswald 2015/05/17
      Returns:
      the medianTime
    • getVarianceTime Link icon

      public double getVarianceTime()
      Method to return the variance of the time between zero crossings (in milliseconds^2) Mike Oswald 2015/05/17
      Returns:
      the varianceTime