-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutils.h
43 lines (39 loc) · 1.96 KB
/
utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* Files: omp_main.cpp clusters.cpp clusters.h utils.h utils.cpp */
/* dbscan.cpp dbscan.h kdtree2.cpp kdtree2.hpp */
/* */
/* Description: an openmp implementation of dbscan clustering algorithm */
/* using the disjoint set data structure */
/* */
/* Author: Md. Mostofa Ali Patwary */
/* EECS Department, Northwestern University */
/* email: [email protected] */
/* */
/* Copyright, 2012, Northwestern University */
/* See COPYRIGHT notice in top-level directory. */
/* */
/* Please cite the following publication if you use this package */
/* */
/* Md. Mostofa Ali Patwary, Diana Palsetia, Ankit Agrawal, Wei-keng Liao, */
/* Fredrik Manne, and Alok Choudhary, "A New Scalable Parallel DBSCAN */
/* Algorithm Using the Disjoint Set Data Structure", Proceedings of the */
/* International Conference on High Performance Computing, Networking, */
/* Storage and Analysis (Supercomputing, SC'12), pp.62:1-62:11, 2012. */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#ifndef _UTILS_
#define _UTILS_
#include <omp.h>
#include <algorithm>
#include <vector>
#include <cmath>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <stdlib.h>
#include <getopt.h>
using namespace std;
typedef float point_coord_type;
typedef vector <vector <point_coord_type> > array2dfloat;
float findKMedian(vector<float>& A,int K);
#endif