-
Class Reference Location
-
Class Reference Location{
-
sigal;//signal vector
-
coornates;//(x,y)
-
distance;// the distance between this reference
-
//location and an known point
-
}
-
maxDis = 0;
-
for i = 0 to locations.length
-
locations[i].distance = Dis (locations [i].singal, T);
-
if maxDis < locations [i].distance
-
then maxDis = locations [i]. distance;
-
endif
-
endfor
-
for i = 0 to locations.length
-
ms [i] = Dis[i]/maxDis;
-
endfor
-
candidates = selectReference(ms,locations) AND totalMF = 0
-
for i = 0 to candidates. length
-
mf [i] = (ms [i])1-k AND totalMF + = mf [i];
-
for i=0 to candidates.length
-
u[i] = mf [i]/totalMF
-
x = 0 AND y = 0
-
for i=0 to candidates.length
-
x + = u [i]*candidates [i].coordinates.x; AND
-
y + = u [i]*candidates [i].coordinates.y;
-
endfor
-
return (x,y);
|