Fuzzykmeans function in fuzzylloyd/fuzzykmeans

Modify your fuzzykmeans function in fuzzylloyd/fuzzykmeans.c so that it will update the
cluster centers repeatedly until convergence.
Say the iterates have converged when the maximum change in the centers array that
takes place in one iteration is less than 1e-3.
Write a main function in a file fuzzylloyd/main.c.
 Your main function should expect two integer command-line arguments: n
and k (in that order).
o n is the total number of data points to generate
o k is the number of clusters to form
 Your main function should do the following:
o Use the provided oracle to generate n data points in 2 dimensions
o Find the maximum and minimum x and y values of the data (this
defines a rectangle that contains every data point)
o Select k random initial cluster centers inside the data-bounding
rectangle (independent, identically distributed uniform distribution,
please)
o Pass the data, initial cluster centers, and array sizes (n and k) to
your fuzzykmeans function
 The fuzzykmeans function should overwrite the cluster
centers
o Print out all of the data points.
o Print out all of the cluster centers.
 You can use any format that will make it easy for you to
plot the data using your plotting system of choice

find the cost of your paper

This question has been answered.

Get Answer