Class DatasetStats
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.detector.nexusprocessor.DatasetProcessorBase
gda.device.detector.nexusprocessor.DatasetStats
- All Implemented Interfaces:
DatasetProcessor,Configurable,Findable
Processor to take a Dataset and calculate some statistics on it
The available statistics are defined in
DatasetStats.Statistic. Which
statistics are enabled can be configured using setEnabledStats(List).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumStatistics for Dataset processing. -
Constructor Summary
ConstructorsConstructorDescriptionOn creation the names and formats for eachDatasetStats.Statisticare set from defaults but can be changed using e.g.DatasetStats(List<DatasetStats.Statistic> enabledStats) -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<String> protected Collection<String> voidProcesses the given dataset, returning aGDANexusDetectorDatacontaining theINexusTrees nodes describing the datasets to be added to the nexus tree.voidSet theDatasetStats.Statistics that should be computed.voidsetPrefixLocalNameWithDataName(boolean prefixLocalNameWithDataName) voidsetStatFormat(DatasetStats.Statistic stat, String format) voidsetStatFormats(Map<DatasetStats.Statistic, String> formats) voidsetStatName(DatasetStats.Statistic stat, String name) voidsetStatNames(Map<DatasetStats.Statistic, String> names) voidsetUseSingleDataGroup(boolean useSingleDataGroup) toString()Methods inherited from class gda.device.detector.nexusprocessor.DatasetProcessorBase
getExtraNames, getOutputFormat, isEnabled, setEnableMethods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
configure, isConfigureAtStartup, isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.device.detector.nexusprocessor.DatasetProcessor
atScanEnd, getName, stop
-
Constructor Details
-
DatasetStats
public DatasetStats()On creation the names and formats for eachDatasetStats.Statisticare set from defaults but can be changed using e.g.setStatName(Statistic, String). -
DatasetStats
-
-
Method Details
-
setUseSingleDataGroup
public void setUseSingleDataGroup(boolean useSingleDataGroup) -
process
public GDANexusDetectorData process(String detectorName, String dataName, org.eclipse.january.dataset.Dataset dataset) throws Exception Description copied from interface:DatasetProcessorProcesses the given dataset, returning aGDANexusDetectorDatacontaining theINexusTrees nodes describing the datasets to be added to the nexus tree.- Parameters:
detectorName- name of detectordataName- name of dataset to processdataset- dataset to process- Returns:
- a
GDANexusDetectorDatawith t - Throws:
Exception
-
atScanStart
public void atScanStart() -
_getExtraNames
- Specified by:
_getExtraNamesin classDatasetProcessorBase
-
_getOutputFormat
- Specified by:
_getOutputFormatin classDatasetProcessorBase
-
toString
-
setPrefixLocalNameWithDataName
public void setPrefixLocalNameWithDataName(boolean prefixLocalNameWithDataName) -
setEnabledStats
Set theDatasetStats.Statistics that should be computed. Note that only those included in the provided list parameter will be used, the defaults will be cleared.- Parameters:
stats- list ofDatasetStats.Statisticto compute for each point
-
getEnabledStats
-
setStatName
-
setStatFormat
-
setStatNames
-
setStatFormats
-
getNodeNames
-