Research Article
A Spectrum Sensing Method Based on Signal Feature and Clustering Algorithm in Cognitive Wireless Multimedia Sensor Networks
Algorithm 1
Spectrum sensing method based on signal feature and clustering algorithm.
| Input: () Train data and test data () | | () Calculate the distanced between and , get the minimum value of and reclassify it. | | () Calculate the mean of all points in the cluster and use the mean as the centroid | | Or select the smallest points of distance from one to all points as centroids. | | () Calculate | | () If the converges then algorithm will stops, otherwise it return the second step. | | () Import the test data | | () If then output , otherwise output . |
|