VTK  9.2.6
vtkCorrelativeStatistics.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkCorrelativeStatistics.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 2011 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  -------------------------------------------------------------------------*/
50 #ifndef vtkCorrelativeStatistics_h
51 #define vtkCorrelativeStatistics_h
52 
53 #include "vtkFiltersStatisticsModule.h" // For export macro
54 #include "vtkStatisticsAlgorithm.h"
55 
57 class vtkStringArray;
58 class vtkTable;
59 class vtkVariant;
60 class vtkDoubleArray;
61 
62 class VTKFILTERSSTATISTICS_EXPORT vtkCorrelativeStatistics : public vtkStatisticsAlgorithm
63 {
64 public:
66  void PrintSelf(ostream& os, vtkIndent indent) override;
67  static vtkCorrelativeStatistics* New();
68 
73 
74 protected:
76  ~vtkCorrelativeStatistics() override;
77 
81  void Learn(vtkTable*, vtkTable*, vtkMultiBlockDataSet*) override;
82 
86  void Derive(vtkMultiBlockDataSet*) override;
87 
91  void Test(vtkTable*, vtkMultiBlockDataSet*, vtkTable*) override;
92 
96  void Assess(vtkTable* inData, vtkMultiBlockDataSet* inMeta, vtkTable* outData) override
97  {
98  this->Superclass::Assess(inData, inMeta, outData, 2);
99  }
100 
105  virtual vtkDoubleArray* CalculatePValues(vtkDoubleArray*);
106 
110  void SelectAssessFunctor(vtkTable* outData, vtkDataObject* inMeta, vtkStringArray* rowNames,
111  AssessFunctor*& dfunc) override;
112 
113 private:
115  void operator=(const vtkCorrelativeStatistics&) = delete;
116 };
117 
118 #endif
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:69
dynamic, self-adjusting array of double
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.
void Assess(vtkTable *inData, vtkMultiBlockDataSet *inMeta, vtkTable *outData) override
Execute the calculations required by the Assess option.
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:73
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.
general representation of visualization data
Definition: vtkDataObject.h:65
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
A class for bivariate linear correlation.