Configuration | Algorithms On the one hand, all data points and thus the value ranges of the individual features are already available at the beginning of a batch analysis, whereas this is not the case with sequential analysis, so that the value ranges are not necessarily fixed in advance. However, it is helpful to know the value ranges of the input channels in advance, even if the actual values only arrive during the course of the analysis. This is particularly important for the initialization of cluster centers. Three different approaches are available for initialization. The center points can be specified in the form of specific values via a parameter array.
Alternatively, the center points can be set randomly or equidistantly in a defined range of values. For the initialization modes Random and Equidistant the value ranges are required and have to be set via the parameters Lower Bounds and Upper Bounds for the individual input channels. On the other hand, in a batch analysis all data points are typically traversed multiple times to update the cluster centers until they change only minimally. This is not possible within the framework of the sequential analysis.
However, in order to still be able to adjust the cluster centers and traverse data points multiple times, the algorithm Sequential k-Means has a buffering mechanism referred to as Aggregation Buffer , which makes it possible to store a limited number of values temporarily. When filling the buffer, all incoming data points are assigned to the closest cluster. The distance between a data point and the cluster centers is determined by the Euclidean norm. Only when the buffer is filled are the cluster centers updated based on the newly allocated data points in the buffer. The new cluster center corresponds to the mean value of all data points contained in the cluster.
This can be calculated incrementally, so that the old data points are not needed for the calculation. The size of the buffer is set by the parameter Aggregation Buffer Size; the default value is 10. The parameter Max Iterations can be used to specify the number of iterations through the buffer. The default value is one. If the value is set to two, for example, after the first adjustment of the cluster centers the data points in the buffer are reassigned to the clusters and then the cluster centers are adjusted again. Due to the shift in cluster centers, it is possible for individual data points to be assigned to different clusters from one iteration to the next.
Due to the limited computing capacity for data processing between two cycles, excessively high values should be avoided for the parameters Aggregation Buffer Size and Max Iterations , otherwise the update of the cluster centers may not be guaranteed. If the cluster centers are not updated for large values for these parameters but are updated for smaller parameter values, this is an indication that the computing capacity is insufficient for the set parameter values and smaller values should be selected. Optionally, a Boolean signal can be selected for the Enable Execution input so that the algorithm is only active if the value of the selected signal is TRUE .
Input values Update Cluster Centers: If TRUE, the centers of each cluster are updated by the incoming data. If FALSE, the cluster centers remain unchanged and are only used to determine the cluster index of the incoming data points. Input 01, ..., Input 0n: These inputs form the n-dimensional feature space for which clustering is performed. Configuration options Num Channels: Determines the number of input channels. Number of Clusters: Defines the number of clusters. Aggregation Buffer Size: Specifies the size of the aggregation buffer and thus the number of cycles after which the cluster centers are updated. The input values of these cycles are stored internally (in the aggregation buffer).
The default value for this parameter is 10. Max Iterations: Specifies how often to iterate over the values in the aggregation buffer. The default value for this parameter is 1. Initialization Mode: Specifies the way in which the cluster centers are initialized: Random: The cluster centers are set randomly within the limits set by the Lower Bounds and Upper Bounds . Equidistant: The cluster centers are distributed equidistantly in the range of values defined by the Lower Bounds and Upper Bounds . Initial Cluster Centers: For the initialization mode Values the values for the initial cluster centers are set here. The values for the individual clusters are set line by line.
That is, the number of matrix rows corresponds to the Number of Clusters and the number of matrix columns corresponds to the Number of Channels . The first row contains the values for the first cluster for each input channel, and so on. Values: The cluster centers are initialized with the values set by the array Initial Cluster Centers . TE3500 184 Version: 1.15.0