VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Infovis
vtkPKMeansStatistics.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPKMeansStatistics.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
-------------------------------------------------------------------------*/
31
#ifndef __vtkPKMeanStatistics_h
32
#define __vtkPKMeanStatistics_h
33
34
#include "
vtkKMeansStatistics.h
"
35
36
class
vtkMultiProcessController
;
37
class
vtkCommunicator
;
38
39
class
VTK_INFOVIS_EXPORT
vtkPKMeansStatistics
:
public
vtkKMeansStatistics
40
{
41
public
:
42
static
vtkPKMeansStatistics
*
New
();
43
vtkTypeMacro(
vtkPKMeansStatistics
,
vtkKMeansStatistics
);
44
void
PrintSelf
(ostream& os,
vtkIndent
indent);
45
47
49
virtual
void
SetController(
vtkMultiProcessController
*);
50
vtkGetObjectMacro(Controller,
vtkMultiProcessController
);
52
54
55
virtual
void
UpdateClusterCenters
(
vtkTable
* newClusterElements,
56
vtkTable
* curClusterElements,
57
vtkIdTypeArray
* numMembershipChanges,
58
vtkIdTypeArray
* numElementsInCluster,
59
vtkDoubleArray
* error,
60
vtkIdTypeArray
* startRunID,
61
vtkIdTypeArray
* endRunID,
62
vtkIntArray
*computeRun );
64
66
virtual
vtkIdType
GetTotalNumberOfObservations
(
vtkIdType
numObservations );
67
69
71
virtual
void
CreateInitialClusterCenters
(
vtkIdType
numToAllocate,
72
vtkIdTypeArray
* numberOfClusters,
73
vtkTable
* inData,
74
vtkTable
* curClusterElements,
75
vtkTable
* newClusterElements);
77
78
79
protected
:
80
vtkPKMeansStatistics
();
81
~
vtkPKMeansStatistics
();
82
83
vtkMultiProcessController
*
Controller
;
84
85
86
private
:
87
vtkPKMeansStatistics
(
const
vtkPKMeansStatistics
&);
// Not implemented.
88
void
operator=(
const
vtkPKMeansStatistics
&);
// Not implemented.
89
};
90
91
#endif
92
Generated on Tue Jan 8 2013 05:45:35 for VTK by
1.8.1.2