why is centroid negative

My data are all non-negative. How can a centroid from kmeans have a negative value? My data are time series and I use most distance functions (to compare clusters). Each centroid is a time series, and should have C(t) >= min(data). Am I missing something?

3 Commenti

Image Analyst
Image Analyst il 15 Mar 2012
So you have a scatter plot with the "x" axis being time, t, and the "y" axis being C? And neither x nor y (t nor C(t)) have negative values. Is that correct?
Harvey
Harvey il 16 Mar 2012
that is correct. I have t = 1:H and x >= 0, where x is N by H matrix. The centroid has C(t) < 0.
Image Analyst
Image Analyst il 16 Mar 2012
Please supply some sample data that illustrates your situation.

Accedi per commentare.

Risposte (0)

Richiesto:

il 15 Mar 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by