|
Algorithm 1 Crowd Counting based on Channel State Information |
Require: Sample Data , Matrix Resolution , Dilatation Coefficient , Number of Subcarrier , Number of Packets , Covariance Matrix , Maximum Value of Covariance , Minimum Value of Covariance , Expansion Matrix Ensure: Percentage of Element
-
1:
the covariance matrix is extracted from wavelet transformed data
-
2:
for to S do
-
3:
the integet k is calculated
-
4:
the matrix M is dilated // the element in row k and column j is set to be “1”
-
5:
for
u = to D
do
-
6:
for
v = to D
do
-
7:
the matrix M is dilated // the element in a radius of D is set to be “1”
-
8:
end for
-
9:
end for
-
10:
end for
-
11:
for to P
do
-
12:
for
to S
do
-
13:
M = M // the percentage of the matrix M of each subcarrier
-
14:
q = q/ // the percentage is calculated
-
15:
end for
-
16:
end for
|