tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
normal.h
Go to the documentation of this file.
1 /* =============================================================================
2  *
3  * normal.h
4  * -- Implementation of normal k-means clustering algorithm
5  *
6  * =============================================================================
7  *
8  * For the license of bayes/sort.h and bayes/sort.c, please see the header
9  * of the files.
10  *
11  * ------------------------------------------------------------------------
12  *
13  * For the license of kmeans, please see kmeans/LICENSE.kmeans
14  *
15  * ------------------------------------------------------------------------
16  *
17  * For the license of ssca2, please see ssca2/COPYRIGHT
18  *
19  * ------------------------------------------------------------------------
20  *
21  * For the license of lib/mt19937ar.c and lib/mt19937ar.h, please see the
22  * header of the files.
23  *
24  * ------------------------------------------------------------------------
25  *
26  * For the license of lib/rbtree.h and lib/rbtree.c, please see
27  * lib/LEGALNOTICE.rbtree and lib/LICENSE.rbtree
28  *
29  * ------------------------------------------------------------------------
30  *
31  * Unless otherwise noted, the following license applies to STAMP files:
32  *
33  * Copyright (c) 2007, Stanford University
34  * All rights reserved.
35  *
36  * Redistribution and use in source and binary forms, with or without
37  * modification, are permitted provided that the following conditions are
38  * met:
39  *
40  * * Redistributions of source code must retain the above copyright
41  * notice, this list of conditions and the following disclaimer.
42  *
43  * * Redistributions in binary form must reproduce the above copyright
44  * notice, this list of conditions and the following disclaimer in
45  * the documentation and/or other materials provided with the
46  * distribution.
47  *
48  * * Neither the name of Stanford University nor the names of its
49  * contributors may be used to endorse or promote products derived
50  * from this software without specific prior written permission.
51  *
52  * THIS SOFTWARE IS PROVIDED BY STANFORD UNIVERSITY ``AS IS'' AND ANY
53  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
54  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
55  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL STANFORD UNIVERSITY BE LIABLE
56  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
57  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
58  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
59  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
60  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
61  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
62  * THE POSSIBILITY OF SUCH DAMAGE.
63  *
64  * =============================================================================
65  */
66 
67 
68 #ifndef NORMAL_H
69 #define NORMAL_H 1
70 
71 
72 #include "random.h"
73 
74 
75 extern double global_parallelTime;
76 
77 
78 /* =============================================================================
79  * normal_exec
80  * =============================================================================
81  */
82 float**
83 normal_exec (int nthreads,
84  float** feature, /* in: [npoints][nfeatures] */
85  int nfeatures,
86  int npoints,
87  int nclusters,
88  float threshold,
89  int* membership,
90  random_t* randomPtr); /* out: [npoints] */
91 
92 
93 #endif /* NORMAL_H */
94 
95 
96 /* =============================================================================
97  *
98  * End of normal.h
99  *
100  * =============================================================================
101  */
Definition: random.h:86
float ** normal_exec(int nthreads, float **feature, int nfeatures, int npoints, int nclusters, float threshold, int *membership, random_t *randomPtr)
Definition: normal.c:204
double global_parallelTime