clickDetector.ClickClassifiers.basicSweep
Class ZeroCrossingStats

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

public class ZeroCrossingStats
extends java.lang.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
 double endFreq
          Zero crossing end frequency from fit
 int nCrossings
          Number of zero crossings
(package private)  double sampleRate
           
 double startFreq
          Zero crossing start frequency from fit.
 double sweepRate
          Zero crossing sweep rate in Hz/second
(package private)  double[] zeroCrossings
           
 
Constructor Summary
ZeroCrossingStats()
          Default constructor, does nothing.
ZeroCrossingStats(double[] zeroCrossings, double sampleRate)
          Constructor which automatically extracts parameters from some zero crossing data
 
Method Summary
private  void extractParams()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

zeroCrossings

double[] zeroCrossings

sampleRate

double sampleRate

nCrossings

public int nCrossings
Number of zero crossings


sweepRate

public double sweepRate
Zero crossing sweep rate in Hz/second


startFreq

public double startFreq
Zero crossing start frequency from fit.


endFreq

public double endFreq
Zero crossing end frequency from fit

Constructor Detail

ZeroCrossingStats

public ZeroCrossingStats()
Default constructor, does nothing.


ZeroCrossingStats

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 Detail

extractParams

private void extractParams()