VTK  9.2.5
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=========================================================================*/
25#ifndef vtkOTKernelSmoothing_h
26#define vtkOTKernelSmoothing_h
27
28#include "vtkFiltersOpenTURNSModule.h" // For export macro
29#include "vtkOTFilter.h"
30
31namespace OT
32{
33class KernelSmoothing;
34}
35
36class VTKFILTERSOPENTURNS_EXPORT vtkOTKernelSmoothing : public vtkOTFilter
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
44
47 vtkSetClampMacro(PointNumber, int, 1, VTK_INT_MAX);
48 vtkGetMacro(PointNumber, int);
50
52
56 vtkSetMacro(GaussianPDF, bool);
57 vtkGetMacro(GaussianPDF, bool);
59
61
65 vtkSetMacro(TriangularPDF, bool);
66 vtkGetMacro(TriangularPDF, bool);
68
70
74 vtkSetMacro(EpanechnikovPDF, bool);
75 vtkGetMacro(EpanechnikovPDF, bool);
77
79
82 vtkSetMacro(BoundaryCorrection, bool);
83 vtkGetMacro(BoundaryCorrection, bool);
85
86protected:
89
93 int Process(OT::Sample* input) override;
94
95 void ComputePDF(OT::Sample* input, OT::KernelSmoothing* ks, double* range, const char* pdfName);
96
102
103private:
104 void operator=(const vtkOTKernelSmoothing&) = delete;
106};
107
108#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
A generic VTK Filter to process vtkTable using openturns algorithm.
Definition: vtkOTFilter.h:38
A VTK Filter to compute Kernel Smoothing using PDF computation from openturns.
int Process(OT::Sample *input) override
Do the actual computation and store it in output.
void ComputePDF(OT::Sample *input, OT::KernelSmoothing *ks, double *range, const char *pdfName)
~vtkOTKernelSmoothing() override
static vtkOTKernelSmoothing * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Set of utilities for OpenTURNS<->VTK conversions.
Definition: vtkOTFilter.h:33
#define VTK_INT_MAX
Definition: vtkType.h:155