VTK  9.1.0
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
28namespace OT
29{
30class KernelSmoothing;
31}
32
33class VTKFILTERSOPENTURNS_EXPORT vtkOTKernelSmoothing : public vtkOTFilter
34{
35public:
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
83protected:
86
90 int Process(OT::Sample* input) override;
91
92 void ComputePDF(OT::Sample* input, OT::KernelSmoothing* ks, double* range, const char* pdfName);
93
99
100private:
101 void operator=(const vtkOTKernelSmoothing&) = delete;
103};
104
105#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
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