Dear All,
hope this message finds you well.
I want to ask about the the implementation of the Fixed-width clustering algorithm.
anyone can help me ASAP?
Fixed-width clustering algorithm:
Fixed width clustering creates a set of clusters
of fixed radius (width) w. Here the width w is a parameter to
be specified by the user. First, a data vector is taken and used as
the centroid (center) of the first cluster with radius w. Then for
each subsequent data vector the Euclidean distance between the
centroid of the current clusters and this data vector is computed. If
the distance to the closest cluster center from the data vector is less
than the radius w, the data vector is added into that cluster and the
centroid of that cluster is adjusted to the mean of the data vectors
it contains. If the distance to the closest cluster center is more than
the radius w, then a new cluster is formed with that data vector as
the centroid. This operation produces a set of disjoint, fixed width
(radius of w) clusters in the feature space.
Thanks in advance
Loading
VulpesPosted May 19, 2011, 10:30 AM
> clusters = new List
>();
VulpesPosted Aug 1, 2013, 3:47 PM
Rather than wrap the List
It also contains a Centroid property which returns a Flow representing the centroid of the Cluster.
Again, it's very rushed so keep an eye out for bugs:
VulpesPosted Aug 1, 2013, 2:36 PM
I'd imagine that the final results won't be much different than if you'd clustered the objects in the original order.
VulpesPosted Jul 30, 2013, 8:34 AM
VulpesPosted Jul 30, 2013, 4:41 AM
'data' is a List
VulpesPosted Jul 29, 2013, 7:46 PM
The following is very rushed so watch out for bugs:
> clusters = new List
>();
VulpesPosted Jul 28, 2013, 4:18 PM
1. You want to cluster 1 particular field of the class (say src) as was done with the temperature field in the previous posts; or
2. You want to cluster all 9 fields of the class, giving them equal weightings, using a 9-dimensional Euclidean distance function?
VulpesPosted Jul 23, 2011, 8:31 AM
It's not difficult to change it. Here's the code:
> clusters = new List
>();
AquaPosted Jul 22, 2011, 7:32 PM
I want to save in addition the sensor ID with the tempreture value, which means when I said that this value is outlier I want to know it comes from which sensor. For ex. when the value 80 is outlier, I want to know that it comes from sensor no. 1.
what is the more suitable data type, is it the class? where it contains the tempreture value & the sensor ID.
this means that I need a list of classes. is it right?
I want to edit the fixed-width algorithm & the merge algorithm to fit my need. is it possible?? and how can I fix it?
Many Thanks
VulpesPosted Jun 6, 2011, 2:44 PM
AquaPosted Jun 6, 2011, 8:37 AM
AquaPosted Jun 5, 2011, 6:45 AM
VulpesPosted May 31, 2011, 7:30 AM
AquaPosted May 31, 2011, 4:05 AM
VulpesPosted May 30, 2011, 10:30 AM
centroids[j] = (centroids[i] + centroids[j])/ 2.0;
However, you'll have some problems if you need to process that cluster again as the centroid won't coincide with the reality of the situation.
AquaPosted May 30, 2011, 10:05 AM
then: centroids[j] = GetCentroid(clusters[j]) will be centroids[i] + centroids[j] / 2
is this right?
AquaPosted May 30, 2011, 9:53 AM
VulpesPosted May 30, 2011, 9:45 AM
> clusters = new List
>();
AquaPosted May 30, 2011, 8:51 AM
AquaPosted May 23, 2011, 7:58 AM
VulpesPosted May 22, 2011, 1:40 PM
AquaPosted May 22, 2011, 9:42 AM
Firstly, I appreciate your effort and time and would like to thank you very much, really it is perfect it is what I want .
Secondly, I want to ask some questions if you don't mind:
Sorry for the inconvenience and thank you for your cooperation.
AquaPosted May 19, 2011, 4:00 AM
Yes I saw it, it is perfect. but I want the the Fixed width clustering :)
I want the data to read from the Database, it is a stream data, i.e. it is sensor readings. To be exact, it is a temperature readings from sensor devices.
The Fixed width clustering algorithm will be performed on these data to detect the outliers value in these data.
thank you for your cooperation & understanding
VulpesPosted May 18, 2011, 6:58 AM
Please see my article (http://www.c-sharpcorner.com/UploadFile/b942f9/6167/) for an implementation of the latter which you may be able to adjust if it's not quite what you want.