You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

25 lines
561 B

#ifndef _PROJECT_GEOMETRY_H_
#define _PROJECT_GEOMETRY_H_
int generate_random_points_2d(
int node_count,
int grid_size,
double *x_coordinates,
double *y_coordinates);
int generate_random_clusters_2d(
int node_count,
int cluster_count,
int grid_size,
double *x_coordinates,
double *y_coordinates,
int *clusters);
int get_euclidean_distance(
double *x_coordinates,
double *y_coordinates,
int p1_index,
int p2_index);
#endif //_PROJECT_GEOMETRY_H_