Package Azigram
Class AzigramDataUnit
- All Implemented Interfaces:
Comparable<PamDataUnit>
,AcousticDataUnit
Just a dirty hack for testing. This AzigramDataUnit is just an FFTDataUnit,
But override the getMagnitude() function to run the demux and Azigram
routines.
- Author:
- brian_mil
-
Constructor Summary
ConstructorDescriptionAzigramDataUnit
(long timeMilliseconds, int channelBitmap, long startSample, long duration, ComplexArray fftData, int fftSlice) -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
double[]
double[]
getF()
double[]
Return the values in decibels (spectrum level I think).getP()
double[]
Placeholder in case we want an Azigram with transparency linked to signal amplitude.double[]
double[]
getVx()
double[]
getVy()
void
setDirectionalAngle
(double[] mu) void
setDirectionalMagnitude
(double[] mag) void
setF
(double[] f) void
setP
(ComplexArray p) void
setVx
(double[] vx) void
setVy
(double[] vy) Methods inherited from class fftManager.FFTDataUnit
getFftData, getFftSlice, getUsefulBinRange, setFftData, setInfo, setUsefulBinRange
Methods inherited from class PamguardMVC.PamDataUnit
addDataAnnotation, addSuperDetection, amplifyMeasuredAmplitudeByDB, amplifyMeasuredAmplitudeByLinear, calcSnapshotGeometry, clearOandAngles, clearUpdateCount, compareTo, findDataAnnotation, findDataAnnotation, freeData, getAbsBlockIndex, getAmplitudeDB, getAnnotationsSummaryString, getBasicData, getCalculatedAmlitudeDB, getChannelBitmap, getColourIndex, getDataAnnotation, getDatabaseIndex, getDatabaseUpdateOf, getDataUnitFileInformation, getDataUnitPopupMenu, getDurationInMilliseconds, getEndTimeInMilliseconds, getFrequency, getFrequencyOverlap, getHydrophoneBitmap, getHydrophoneHeading, getLastChangeTime, getLastSample, getLastUpdateTime, getLocalisation, getMeasuredAmplitude, getMeasuredAmplitudeType, getNoiseBackground, getNumDataAnnotations, getOriginLatLong, getParentDataBlock, getSampleDuration, getSampleDurationAsInt, getSeconds, getSequenceBitmap, getSequenceBitmapObject, getSignalExcess, getSignalSPL, getSnapshotGeometry, getStartSample, getSummaryString, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetectionsCount, getSuperDetectionSyncronisation, getSuperId, getTimeDelaysSeconds, getTimeMilliseconds, getTimeNanoseconds, getTimeOverlap, getUID, getUpdateCount, isEmbryonic, isForceAmpRecalc, linAmplitudeToDB, removeDataAnnotation, removeDataAnnotation, removeSuperDetection, setAbsBlockIndex, setCalculatedAmlitudeDB, setChannelBitmap, setDatabaseIndex, setDatabaseUpdateOf, setDataUnitFileInformation, setDurationInMilliseconds, setEmbryonic, setForceAmpRecalc, setFrequency, setInfo, setLastUpdateTime, setLocalisation, setMeasuredAmpAndType, setMeasuredAmplitude, setMeasuredAmplitudeType, setNoiseBackground, setParentDataBlock, setSampleDuration, setSequenceBitmap, setSignalExcess, setSignalSPL, setSnapshotGeometry, setStartSample, setTimeDelaysSeconds, setTimeMilliseconds, setUID, setUniqueSuperDetection, sortOutputMaps, updateDataUnit
-
Constructor Details
-
AzigramDataUnit
public AzigramDataUnit(long timeMilliseconds, int channelBitmap, long startSample, long duration, ComplexArray fftData, int fftSlice)
-
-
Method Details
-
getMagnitudeData
public double[] getMagnitudeData()Description copied from class:FFTDataUnit
Return the values in decibels (spectrum level I think). Should be good to go for plotting on the spectrogram.- Overrides:
getMagnitudeData
in classFFTDataUnit
- Returns:
- data for plotting. Should be converted to the same scale as is used by the plot axis (usually dB, but might be counts or some other data type)
-
getP
-
setP
-
getVx
public double[] getVx() -
setVx
public void setVx(double[] vx) -
getVy
public double[] getVy() -
setVy
public void setVy(double[] vy) -
getF
public double[] getF() -
setF
public void setF(double[] f) -
getDirectionalAngle
public double[] getDirectionalAngle() -
setDirectionalAngle
public void setDirectionalAngle(double[] mu) -
getSpectrogramData
public double[] getSpectrogramData()- Overrides:
getSpectrogramData
in classFFTDataUnit
-
getSpectrogramAlpha
public double[] getSpectrogramAlpha()Placeholder in case we want an Azigram with transparency linked to signal amplitude.- Returns:
-
setDirectionalMagnitude
public void setDirectionalMagnitude(double[] mag) -
getDirectionalMagnitude
public double[] getDirectionalMagnitude()
-