commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Artem Barger <>
Subject [Math] Is generic parameter T is really needed for KMeansPlusPlusClusterer.
Date Tue, 31 May 2016 12:41:10 GMT

I'm just wondering whenever generic parameter for class
KMeansPlusPlusClusterer is really needed? I mean, I do understand the
initial intent of declaring it and trying to provide generic solution,
however in really after all current implementation heavily relies on T
being actually a DoublePoint, since it required to provide an ability to
define new centers while running Lloyd's iteration.

Could it be better to remove T and change the declaration of the class from

        *extends Clusterer<T> *
        *extends Clusterer<DoublePoint>*

to avoid confusions?

Best regards,
                      Artem Barger.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message