VTK
vtkOTKernelSmoothing.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOTKernelSmoothing.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 =========================================================================*/
22 #ifndef vtkOTKernelSmoothing_h
23 #define vtkOTKernelSmoothing_h
24 
25 #include "vtkFiltersOpenTurnsModule.h" // For export macro
26 #include "vtkOTFilter.h"
27 
28 namespace OT
29 {
30 class KernelSmoothing;
31 }
32 
33 class VTKFILTERSOPENTURNS_EXPORT vtkOTKernelSmoothing : public vtkOTFilter
34 {
35 public:
36  static vtkOTKernelSmoothing* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
44  vtkSetClampMacro(PointNumber, int, 1, VTK_INT_MAX);
45  vtkGetMacro(PointNumber, int);
47 
49 
53  vtkSetMacro(GaussianPDF, bool);
54  vtkGetMacro(GaussianPDF, bool);
56 
58 
62  vtkSetMacro(TriangularPDF, bool);
63  vtkGetMacro(TriangularPDF, bool);
65 
67 
71  vtkSetMacro(EpanechnikovPDF, bool);
72  vtkGetMacro(EpanechnikovPDF, bool);
74 
76 
79  vtkSetMacro(BoundaryCorrection, bool);
80  vtkGetMacro(BoundaryCorrection, bool);
82 
83 protected:
86 
90  virtual int Process(OT::Sample* input) override;
91 
92  void ComputePDF(OT::Sample* input,
93  OT::KernelSmoothing* ks,
94  double* range,
95  const char* pdfName);
96 
102 
103 private:
104  void operator=(const vtkOTKernelSmoothing&) = delete;
106 };
107 
108 #endif
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:159
vtkOTKernelSmoothing::BoundaryCorrection
bool BoundaryCorrection
Definition: vtkOTKernelSmoothing.h:101
vtkOTKernelSmoothing
A VTK Filter to compute Kernel Smoothing using PDF computation from openturns.
Definition: vtkOTKernelSmoothing.h:33
vtkOTKernelSmoothing::PointNumber
int PointNumber
Definition: vtkOTKernelSmoothing.h:97
vtkX3D::range
Definition: vtkX3D.h:238
vtkOTFilter::Process
virtual int Process(OT::Sample *input)=0
Abstract method to process openturns data.
OT
Set of utilities for OpenTURNS<->VTK conversions.
Definition: vtkOTFilter.h:32
vtkOTFilter
A generic VTK Filter to process vtkTable using openturns algorithm. It expects a vtkTable as first in...
Definition: vtkOTFilter.h:37
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkOTKernelSmoothing::EpanechnikovPDF
bool EpanechnikovPDF
Definition: vtkOTKernelSmoothing.h:100
vtkOTFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOTKernelSmoothing::GaussianPDF
bool GaussianPDF
Definition: vtkOTKernelSmoothing.h:98
vtkOTFilter.h
vtkTableAlgorithm::New
static vtkTableAlgorithm * New()
vtkOTKernelSmoothing::TriangularPDF
bool TriangularPDF
Definition: vtkOTKernelSmoothing.h:99