public class AmplifiedDataBlock extends PamRawDataBlock
ITERATOR_END, MATCH_AFTER, MATCH_BEFORE, MATCH_EXACT, MIX_DONOTHING, MIX_INTODATABASE, MIX_OUTOFDATABASE, NOTIFY_NEW_DATA, NOTIFY_UPDATE_DATA, OFFLINE_DATA_CANCEL, OFFLINE_DATA_INTERRUPT, OFFLINE_DATA_WAIT, orderLock, POSITION_AFTER, POSITION_BEFORE, REFERENCE_ABSOLUTE, REFERENCE_CURRENT, REQUEST_DATA_LOADED, REQUEST_DATA_PARTIAL_LOAD, REQUEST_EXCEPTION, REQUEST_INTERRUPTED, REQUEST_NO_DATA, REQUEST_SAME_REQUEST
Constructor and Description |
---|
AmplifiedDataBlock(java.lang.String name,
PamProcess parentProcess,
int channelMap,
float sampleRate) |
AmplifiedDataBlock(java.lang.String name,
PamProcess parentProcess,
int channelMap,
float sampleRate,
boolean autoDisplay) |
Modifier and Type | Method and Description |
---|---|
double |
getDataGain(int chan)
Return the gain applied to any data created into this
datablock.
|
void |
setDataGain(double[] gain) |
addObserver, addObserver, addPamData, getChannelListManager, getSamples, getSamples, getSamplesForMillis
getParentSourceData, notifyModelChanged
addDataAnnotationType, addLocalisationContents, addOfflineDataMap, autoSetDataBlockMixMode, cancelDataOrder, clearAll, clearChannelIterators, clearDeletedList, createProcessAnnotations, createProcessAnnotations, dumpBlockContents, findAnnotation, findAnnotation, findByDatabaseIndex, findDataUnit, findDataUnit, findUnitsinInterval, getBinaryDataSource, getCanLog, getChannelIterator, getChannelIteratorCount, getChannelMap, getClosestUnitMillis, getClosestUnitMillis, getCurrentViewDataEnd, getCurrentViewDataStart, getDataAnnotationType, getDatagrammedMap, getDatagramProvider, getDataName, getDataSelectCreator, getDataSelector, getDataUnit, getFirstUnit, getFirstUnit, getFirstUnitAfter, getLastUnit, getLastUnit, getListIterator, getListIterator, getListIteratorFromEnd, getListIteratorFromStart, getLocalisationContents, getLogging, getLoggingName, getLongDataName, getMixedDirection, getNaturalLifetime, getNaturalLifetimeMillis, getNextDataStart, getNextUnit, getNextUnit, getNumDataAnnotationTypes, getNumOfflineDataMaps, getNumRequiredBeforeLoadTime, getOfflineData, getOfflineDataMap, getOfflineDataMap, getOrderStatus, getParentProcess, getPreceedingUnit, getPreceedingUnit, getPreceedingUnit, getPreceedingUnit, getPrevDataEnd, getPrimaryDataMap, getProcessAnnotations, getQuickId, getRawSourceDataBlock, getRawSourceDataBlock2, getRecycledUnit, getRecyclingStoreLength, getRemovedItems, getReverseChannelIterator, getSampleRate, getSaveRequirements, getShouldBinary, getShouldLog, getSourceDataBlock, getSourceProcess, getUnitClass, getUnitIndex, getUnitsCount, getUnitsCountFromTime, isCanClipGenerate, isClearAtStart, isLinkGpsData, isRecycling, loadViewerData, masterClockUpdate, noteNewSettings, orderOfflineData, orderOfflineData, remove, remove, removeOfflineDataMap, reset, saveViewerData, setBinaryDataSource, setCanClipGenerate, setChannelMap, setClearAtStart, setDatagramProvider, setDataName, setLinkGpsData, setLocalisationContents, SetLogging, setMixedDirection, setNaturalLifetime, setNaturalLifetimeMillis, setRecordingTrigger, setRecycling, setRecyclingStoreLength, setSampleRate, setShouldBinary, setShouldLog, shouldNotify, sortData, toString, updatePamData
canDraw, clearchanged, countObservers, createKeyItem, deleteObserver, deleteObservers, drawDataUnit, findThreadedObserver, getCPUPercent, getCPUPercent, getHoverText, getLongestObserver, getPamObservers, getRequiredHistory, hasOptionsDialog, notifyObservers, notifyObservers, setChanged, setOverlayDraw, showOptions, waitForThreadedObservers
public AmplifiedDataBlock(java.lang.String name, PamProcess parentProcess, int channelMap, float sampleRate)
public AmplifiedDataBlock(java.lang.String name, PamProcess parentProcess, int channelMap, float sampleRate, boolean autoDisplay)
public void setDataGain(double[] gain)
public double getDataGain(int chan)
PamDataBlock
Example 1: The amplifier module will just return it's gain
Example 2: The FFT module will return the loss due to windowing the data.
To convert to dB use 20*log10(Math.abs(getDataGain()));
getDataGain
in class PamDataBlock<RawDataUnit>
chan
- channel number