-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathio.h
More file actions
15 lines (11 loc) · 617 Bytes
/
Copy pathio.h
File metadata and controls
15 lines (11 loc) · 617 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef __IO_H
#define __IO_H
#include <assert.h>
float** readVectorsFromFile(const char *fileName, //file containing the data set
int *numDims, //number of dims in vectorial space
int *numVectors, //number of given vectors in file
int *maxNumOfClusters, //MAX number of cluster allowed according to file
int *iterationLimit, //limit of k-means iteration allowed
float *qualityOfClusters) //quality of clusters to find according to file
void printVectors(float** vectors, int numVectors, int numDims);
#endif //__IO_H