VTK  9.0.3
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  -------------------------------------------------------------------------*/
49 #ifndef vtkDescriptiveStatistics_h
50 #define vtkDescriptiveStatistics_h
51 
52 #include "vtkFiltersStatisticsModule.h" // For export macro
53 #include "vtkStatisticsAlgorithm.h"
54 
56 class vtkStringArray;
57 class vtkTable;
58 class vtkVariant;
59 class vtkDoubleArray;
60 
61 class VTKFILTERSSTATISTICS_EXPORT vtkDescriptiveStatistics : public vtkStatisticsAlgorithm
62 {
63 public:
65  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
69 
74  vtkSetMacro(UnbiasedVariance, vtkTypeBool);
75  vtkGetMacro(UnbiasedVariance, vtkTypeBool);
76  vtkBooleanMacro(UnbiasedVariance, vtkTypeBool);
78 
80 
85  vtkSetMacro(G1Skewness, vtkTypeBool);
86  vtkGetMacro(G1Skewness, vtkTypeBool);
87  vtkBooleanMacro(G1Skewness, vtkTypeBool);
89 
91 
96  vtkSetMacro(G2Kurtosis, vtkTypeBool);
97  vtkGetMacro(G2Kurtosis, vtkTypeBool);
98  vtkBooleanMacro(G2Kurtosis, vtkTypeBool);
100 
102 
107  vtkSetMacro(SignedDeviations, vtkTypeBool);
108  vtkGetMacro(SignedDeviations, vtkTypeBool);
109  vtkBooleanMacro(SignedDeviations, vtkTypeBool);
111 
116 
117 protected:
120 
126 
130  void Derive(vtkMultiBlockDataSet*) override;
131 
136 
140  void Assess(vtkTable* inData, vtkMultiBlockDataSet* inMeta, vtkTable* outData) override
141  {
142  this->Superclass::Assess(inData, inMeta, outData, 1);
143  }
144 
150 
154  void SelectAssessFunctor(vtkTable* outData, vtkDataObject* inMeta, vtkStringArray* rowNames,
155  AssessFunctor*& dfunc) override;
156 
161 
162 private:
164  void operator=(const vtkDescriptiveStatistics&) = delete;
165 };
166 
167 #endif
maintain an unordered list of data objects
general representation of visualization data
Definition: vtkDataObject.h:60
A class for univariate descriptive statistics.
void SelectAssessFunctor(vtkTable *outData, vtkDataObject *inMeta, vtkStringArray *rowNames, AssessFunctor *&dfunc) override
Provide the appropriate assessment functor.
void Derive(vtkMultiBlockDataSet *) override
Execute the calculations required by the Derive option.
void Test(vtkTable *, vtkMultiBlockDataSet *, vtkTable *) override
Execute the calculations required by the Test option.
void Learn(vtkTable *, vtkTable *, vtkMultiBlockDataSet *) override
Execute the calculations required by the Learn option, given some input Data NB: input parameters are...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Assess(vtkTable *inData, vtkMultiBlockDataSet *inMeta, vtkTable *outData) override
Execute the calculations required by the Assess option.
static vtkDescriptiveStatistics * New()
virtual vtkDoubleArray * CalculatePValues(vtkDoubleArray *)
Calculate p-value.
~vtkDescriptiveStatistics() override
void Aggregate(vtkDataObjectCollection *, vtkMultiBlockDataSet *) override
Given a collection of models, calculate aggregate model.
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:34
Composite dataset that organizes datasets into blocks.
A base class for a functor that assesses data.
Base class for statistics algorithms.
a vtkAbstractArray subclass for strings
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:63
A atomic type representing the union of many types.
Definition: vtkVariant.h:66
int vtkTypeBool
Definition: vtkABI.h:69