Click here to Skip to main content
15,880,543 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm helping a friend in developing a project for our alma mater. And its based on this paper. based on this paper:
(PDF) An Enhanced Indoor Positioning Method Based on Wi-Fi RSS Fingerprinting[^]

and inside this paper their is this algorithm that the proponents of the research used:
HTML
Algorithm 1 proposed method
1. Input data of fingerprints 𝑅𝑆𝑆𝑚,𝑖(𝑙) and (𝑥𝑙
, 𝑦𝑙), 𝑙 = 1, … , 𝐿 ; 𝑚 = 1, … , 𝑀, 𝑖 = 1, … , 𝑛
2. Input data of test 𝑅𝑆𝑆′
𝑗,𝑖
, 𝑗 = 1, … , 𝑁 ; 𝑖 = 1, … , 𝑛
3. for m=1:M do
4. for l=1: 𝐿 do
5. for j=1:N do
6. Calculate the Euclidian distance, 𝐷𝑗,𝑚(𝑙), between 𝑅𝑆𝑆′
𝑗,𝑖 and 𝑅𝑆𝑆𝑚,𝑖(𝑙)
7. end for
8. Select the minimum (with respect to j) distance 𝐷𝑚,𝑙 among 𝑁
9. end for
10. end for
11. Sort each column of the matrix 𝐷𝑀×𝐿
in ascending order, to obtain the matrix 𝐷𝐶𝑀×𝐿
.
12. Store the 𝑘𝑙
𝑡ℎ
(l = 1,…,L) element of each column of the matrix 𝐷𝐶𝑀×𝐿
in a vector.
13. Select the RP that has the minimum distance in this vector.
14. Output the coordinates of this RP as the estimated position.


and according to the paper. the authors used MATLAB 2014 to translate that algorithm. I don't know if that will be applicable to us because:

1. We don't have license for matlab (and piracy is a no no)
2. The project we are developing is using a mobile app to get the signal (using wifi) web app to monitor the users and I don't know if MATLAB can be used in web.
The algorithm is used to get the signal strength of a mobile and the location and it will be incorporated in the website.

My question is can PHP or JS or Python be used as a substitute for MATLAB?

What I have tried:

I'm currently just researching about this and any queries will be very welcome as this is my first time working with algorithms and especially matlab.
Posted
Updated 31-Jul-20 23:13pm
Comments
[no name] 1-Aug-20 6:07am    
There is a free MATLAB alternative available which is partly compatible to MATLAB: GNU Octave[^]

Quote:
My question is can PHP or JS or Python be used as a substitute for MATLAB?

AFAIK and a quick reference on web, seems Python is a viable option for MATLAB replacement. Refer detailed reference here:
MATLAB vs Python: Why and How to Make the Switch – Real Python[^]
 
Share this answer
 
Comments
franciskane 1-Aug-20 9:01am    
Thanks! Any tips how to refine the pseudo code I posted above? That is directly from the research paper and I can't fully understand it for me to be able to transalate it properly to a source code.
Any programming language would be acceptable. The difficulty is actually coding the algorithms to an acceptable level of accuracy and reliability. But that is what testing is for.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900