OpenMS  2.7.0
Classes | Public Member Functions | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
LayerStatisticsDialog Class Reference

Dialog showing statistics about the data of the current layer. More...

#include <OpenMS/VISUAL/DIALOGS/LayerStatisticsDialog.h>

Inheritance diagram for LayerStatisticsDialog:
[legend]
Collaboration diagram for LayerStatisticsDialog:
[legend]

Classes

struct  MetaStatsValue_
 Struct representing the statistics about one meta information. More...
 

Public Member Functions

 LayerStatisticsDialog (PlotWidget *parent)
 Constructor. More...
 
 ~LayerStatisticsDialog ()
 

Protected Types

typedef LayerData::ExperimentType::SpectrumType::ConstIterator PeakIterator_
 Iterates over peaks of a spectrum. More...
 
typedef LayerData::FeatureMapType::ConstIterator FeatureIterator_
 Iterates over features of a feature map. More...
 
typedef LayerData::ConsensusMapType::ConstIterator ConsensusIterator_
 Iterates over features of a feature map. More...
 
typedef std::map< UInt, MetaStatsValue_ >::iterator MetaIterator_
 Iterates over the meta_stats map. More...
 

Protected Slots

void showDistribution_ ()
 Shows the distribution according to the clicked button. More...
 

Protected Member Functions

void computePeakStats_ ()
 Computes the statistics of a peak layer. More...
 
void computeFeatureStats_ ()
 Computes the statistics of a feature layer. More...
 
void computeConsensusStats_ ()
 Computes the statistics of a consensus feature layer. More...
 
template<typename MetaDataIterator >
void computeMetaDataArrayStats_ (MetaDataIterator begin, MetaDataIterator end)
 Computes the statistics of all meta data contained in the FloatDataArray or IntegerDataArray of an MSSpectrum. More...
 
void bringInMetaStats_ (const MetaInfoInterface &meta_interface)
 Brings the meta values of one meta_interface (a peak or feature) into the statistics. More...
 
void computeMetaAverages_ ()
 Computes the averages of all meta values stored in meta_stats and meta_array_stats. More...
 

Protected Attributes

std::map< UInt, MetaStatsValue_meta_stats_
 Map containing the statistics about all meta information of the peaks/features in the layer. More...
 
std::map< String, MetaStatsValue_meta_array_stats_
 Map containing the statistics about the FloatDataArrays of all spectra in this layer. More...
 
PlotCanvascanvas_
 The canvas of the layer. More...
 
const LayerDatalayer_data_
 The LayerData object we compute statistics about. More...
 
double min_intensity_
 Minimum intensity value. More...
 
double max_intensity_
 Maximum intensity value. More...
 
double avg_intensity_
 Average intensity value. More...
 
double min_charge_
 Minimum charge value. More...
 
double max_charge_
 Maximum charge value. More...
 
double avg_charge_
 Average charge value. More...
 
double min_quality_
 Minimum quality value. More...
 
double max_quality_
 Maximum quality value. More...
 
double avg_quality_
 Average quality value. More...
 
double min_elements_
 Minimum number of elements (for consensus features only) More...
 
double max_elements_
 Maximum number of elements (for consensus features only) More...
 
double avg_elements_
 Average number of elements (for consensus features only) More...
 

Private Member Functions

 LayerStatisticsDialog ()
 Not implemented. More...
 

Private Attributes

Ui::LayerStatisticsDialogTemplate * ui_
 

Detailed Description

Dialog showing statistics about the data of the current layer.

Member Typedef Documentation

◆ ConsensusIterator_

Iterates over features of a feature map.

◆ FeatureIterator_

Iterates over features of a feature map.

◆ MetaIterator_

typedef std::map<UInt, MetaStatsValue_>::iterator MetaIterator_
protected

Iterates over the meta_stats map.

◆ PeakIterator_

Iterates over peaks of a spectrum.

Constructor & Destructor Documentation

◆ LayerStatisticsDialog() [1/2]

Constructor.

◆ ~LayerStatisticsDialog()

◆ LayerStatisticsDialog() [2/2]

LayerStatisticsDialog ( )
private

Not implemented.

Member Function Documentation

◆ bringInMetaStats_()

void bringInMetaStats_ ( const MetaInfoInterface meta_interface)
protected

Brings the meta values of one meta_interface (a peak or feature) into the statistics.

◆ computeConsensusStats_()

void computeConsensusStats_ ( )
protected

Computes the statistics of a consensus feature layer.

◆ computeFeatureStats_()

void computeFeatureStats_ ( )
protected

Computes the statistics of a feature layer.

◆ computeMetaAverages_()

void computeMetaAverages_ ( )
protected

Computes the averages of all meta values stored in meta_stats and meta_array_stats.

◆ computeMetaDataArrayStats_()

void computeMetaDataArrayStats_ ( MetaDataIterator  begin,
MetaDataIterator  end 
)
protected

◆ computePeakStats_()

void computePeakStats_ ( )
protected

Computes the statistics of a peak layer.

◆ showDistribution_

void showDistribution_ ( )
protectedslot

Shows the distribution according to the clicked button.

Member Data Documentation

◆ avg_charge_

double avg_charge_
protected

Average charge value.

◆ avg_elements_

double avg_elements_
protected

Average number of elements (for consensus features only)

◆ avg_intensity_

double avg_intensity_
protected

Average intensity value.

◆ avg_quality_

double avg_quality_
protected

Average quality value.

◆ canvas_

PlotCanvas* canvas_
protected

The canvas of the layer.

◆ layer_data_

const LayerData& layer_data_
protected

The LayerData object we compute statistics about.

◆ max_charge_

double max_charge_
protected

Maximum charge value.

◆ max_elements_

double max_elements_
protected

Maximum number of elements (for consensus features only)

◆ max_intensity_

double max_intensity_
protected

Maximum intensity value.

◆ max_quality_

double max_quality_
protected

Maximum quality value.

◆ meta_array_stats_

std::map<String, MetaStatsValue_> meta_array_stats_
protected

Map containing the statistics about the FloatDataArrays of all spectra in this layer.

Referenced by LayerStatisticsDialog::computeMetaDataArrayStats_().

◆ meta_stats_

std::map<UInt, MetaStatsValue_> meta_stats_
protected

Map containing the statistics about all meta information of the peaks/features in the layer.

◆ min_charge_

double min_charge_
protected

Minimum charge value.

◆ min_elements_

double min_elements_
protected

Minimum number of elements (for consensus features only)

◆ min_intensity_

double min_intensity_
protected

Minimum intensity value.

◆ min_quality_

double min_quality_
protected

Minimum quality value.

◆ ui_

Ui::LayerStatisticsDialogTemplate* ui_
private