|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectwhistlesAndMoans.SliceData
public class SliceData
| Field Summary | |
|---|---|
protected FFTDataUnit |
fftDataUnit
|
protected int |
nPeaks
|
private int |
peakBin
|
protected int[][] |
peakInfo
|
private double |
rmsAmplitude
|
protected int |
sliceLength
|
protected int |
sliceNumber
|
protected boolean[] |
slicePixs
|
protected long |
startSample
|
| Constructor Summary | |
|---|---|
protected |
SliceData(int sliceNumber,
int sliceLength,
FFTDataUnit fftDataUnit)
Constructor to use when creating new slices during initial detection |
protected |
SliceData(int sliceNumber,
long startSample,
int[][] peakInfo)
Constructor for creating slices offline when read back from binary files. |
protected |
SliceData(SliceData oldSlice,
int peakToSteal)
Constructor to use when creating slices from a mother slice during whistle fragmentation. |
| Method Summary | |
|---|---|
protected int[] |
condenseInfo(SliceData prevSlice)
Repacks the data and returns the lower and upper bounds. |
private int |
countRegions()
|
private int |
findOverlappingPeak(int[] peakInfo,
SliceData otherSlice)
|
int |
getPeakBin()
|
double |
getRmsAmplitude()
|
long |
getStartSample()
|
protected double |
getTotalRMSAmplitude()
work out the total rms amplitude in all set peaks within the slice Must be called after condenseInfo |
void |
setRmsAmplitude()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int sliceNumber
protected int sliceLength
protected boolean[] slicePixs
protected FFTDataUnit fftDataUnit
protected long startSample
protected int nPeaks
protected int[][] peakInfo
private int peakBin
private double rmsAmplitude
| Constructor Detail |
|---|
protected SliceData(int sliceNumber,
int sliceLength,
FFTDataUnit fftDataUnit)
sliceNumber - slice numbersliceLength - slice lengthfftDataUnit - reference to FFT Data Unit.
protected SliceData(SliceData oldSlice,
int peakToSteal)
oldSlice - reference to slice in mother shapenewNumber - new slice number (may be smaller)peakToSteal - peak number to steal (there will only be one of these).
protected SliceData(int sliceNumber,
long startSample,
int[][] peakInfo)
sliceNumber - slice nukberpeakData - peak data (n*4)| Method Detail |
|---|
public int getPeakBin()
protected int[] condenseInfo(SliceData prevSlice)
0th = lower bound
1st = peak value
2nd = upper bound
3rd = peak number in previous slice (filled in later but allocated now)
public double getRmsAmplitude()
public void setRmsAmplitude()
protected double getTotalRMSAmplitude()
private int findOverlappingPeak(int[] peakInfo,
SliceData otherSlice)
private int countRegions()
public long getStartSample()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||