VTK
vtkDescriptiveStatistics.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkDescriptiveStatistics.h
5 
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2010 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19  -------------------------------------------------------------------------*/
55 #ifndef vtkDescriptiveStatistics_h
56 #define vtkDescriptiveStatistics_h
57 
58 #include "vtkFiltersStatisticsModule.h" // For export macro
59 #include "vtkStatisticsAlgorithm.h"
60 
62 class vtkStringArray;
63 class vtkTable;
64 class vtkVariant;
65 class vtkDoubleArray;
66 
67 class VTKFILTERSSTATISTICS_EXPORT vtkDescriptiveStatistics : public vtkStatisticsAlgorithm
68 {
69 public:
71  void PrintSelf(ostream& os, vtkIndent indent) override;
72  static vtkDescriptiveStatistics* New();
73 
75 
80  vtkSetMacro(UnbiasedVariance,vtkTypeBool);
81  vtkGetMacro(UnbiasedVariance,vtkTypeBool);
82  vtkBooleanMacro(UnbiasedVariance,vtkTypeBool);
84 
86 
91  vtkSetMacro(G1Skewness,vtkTypeBool);
92  vtkGetMacro(G1Skewness,vtkTypeBool);
93  vtkBooleanMacro(G1Skewness,vtkTypeBool);
95 
97 
102  vtkSetMacro(G2Kurtosis,vtkTypeBool);
103  vtkGetMacro(G2Kurtosis,vtkTypeBool);
104  vtkBooleanMacro(G2Kurtosis,vtkTypeBool);
106 
108 
113  vtkSetMacro(SignedDeviations,vtkTypeBool);
114  vtkGetMacro(SignedDeviations,vtkTypeBool);
115  vtkBooleanMacro(SignedDeviations,vtkTypeBool);
117 
122  vtkMultiBlockDataSet* ) override;
123 
124 protected:
126  ~vtkDescriptiveStatistics() override;
127 
132  void Learn( vtkTable*,
133  vtkTable*,
134  vtkMultiBlockDataSet* ) override;
135 
139  void Derive( vtkMultiBlockDataSet* ) override;
140 
144  void Test( vtkTable*,
146  vtkTable* ) override;
147 
151  void Assess( vtkTable* inData,
152  vtkMultiBlockDataSet* inMeta,
153  vtkTable* outData ) override
154  { this->Superclass::Assess( inData, inMeta, outData, 1 ); }
155 
160  virtual vtkDoubleArray* CalculatePValues(vtkDoubleArray*);
161 
165  void SelectAssessFunctor( vtkTable* outData,
166  vtkDataObject* inMeta,
167  vtkStringArray* rowNames,
168  AssessFunctor*& dfunc ) override;
169 
174 
175 private:
177  void operator = ( const vtkDescriptiveStatistics& ) = delete;
178 };
179 
180 #endif
A base class for a functor that assesses data.
static vtkTableAlgorithm * New()
maintain an unordered list of data objects
virtual void Test(vtkTable *, vtkMultiBlockDataSet *, vtkTable *)=0
Execute the calculations required by the Test option.
a vtkAbstractArray subclass for strings
A atomic type representing the union of many types.
Definition: vtkVariant.h:71
dynamic, self-adjusting array of double
int vtkTypeBool
Definition: vtkABI.h:69
Base class for statistics algorithms.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void Aggregate(vtkDataObjectCollection *, vtkMultiBlockDataSet *)=0
Given a collection of models, calculate aggregate model.
virtual void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *)=0
Execute the calculations required by the Learn option, given some input Data.
A class for univariate descriptive statistics.
virtual void Derive(vtkMultiBlockDataSet *)=0
Execute the calculations required by the Derive option.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
Composite dataset that organizes datasets into blocks.
virtual void SelectAssessFunctor(vtkTable *outData, vtkDataObject *inMeta, vtkStringArray *rowNames, AssessFunctor *&dfunc)=0
A pure virtual method to select the appropriate assessment functor.
void Assess(vtkTable *inData, vtkMultiBlockDataSet *inMeta, vtkTable *outData) override
Execute the calculations required by the Assess option.
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.