Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
logical, | public | :: | initialized | = | .false. | ||
integer, | public | :: | ndims | ||||
integer, | public | :: | nclusters | ||||
integer, | public | :: | maxiters | ||||
logical, | public | :: | centroids_set | ||||
integer, | public, | allocatable | :: | prevClusters(:) | |||
integer, | public, | allocatable | :: | clusters(:) | |||
real(kind=RP), | public, | allocatable | :: | centroids(:,:) |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(kMeans_t), | intent(inout) | :: | self |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(kMeans_t), | intent(inout) | :: | self | |||
integer, | intent(in) | :: | ndims | |||
integer, | intent(in) | :: | nclusters | |||
integer, | intent(in), | optional | :: | maxiters |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(kMeans_t), | intent(inout) | :: | self | |||
real(kind=RP), | intent(in) | :: | x(:,:) | |||
integer, | intent(out), | optional | :: | info | ||
real(kind=RP), | intent(in), | optional | :: | centroids(self%ndims,self%nclusters) | ||
logical, | intent(in), | optional | :: | reset |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(kMeans_t), | intent(inout) | :: | self | |||
real(kind=RP), | intent(in) | :: | x(:,:) | |||
integer, | intent(out), | optional | :: | info |