Clarissa M.

asked • 06/30/21

NEED HELP ASAP!

Create a program to localize medical devices in a hospital and to implement a common fingerprinting localization algorithm called the Nearest Neighbor (NN).


Task:

  1. create an offline stage of 4 X 4 grid points.
  2. each set of 4 grid points belongs to a specific direction such as Northwest, Northeast, Southeast, Southwest.
  3. each grid point has one Received Signal Strength (RSS) measurement received from a surrounding BLE beacon.
  4. Assume these measurements are generated randomly by the program.

For the online stage, some hospital devices are tracked based on the NN algorithm. The algorithm checks the measured RSS for one of the devices and compares it to all the grid points RSS initialized in the offline stage. The equation is: d = √(RSSi - RSSt )2

  1. d - the distance computed between a Grid Point i and a target.
  2. i - to the index of the grid point
  3. t - to the target node.
  4. If the distance with a Grid point x is found to be the shortest for one device, then the device is assumed to be located at the point. If there were equal minimum distances from 2 or more grid points to a target, choose only one. The same process is repeated for the others.

1) an Enum class consists of the 4 directions

2) an Enum class consists of 4 coordinates (0,0), (0,1), (1,0), (1,1) for each direction

3) GridPoint class that has coordinated, direction and RSS data members

4) OfflineStage class that initializes an array of grid points. Any RSS measurement generates randomly between 0 & -60 dBms

5) LocalizationTechniques interface consists of the hospital name member and the nearestNeighbour method

6) HealthDevice class related to the interface and consists 3 members:

  1. String deviceName
  2. int id (id of the device)
  3. int rss

1 Expert Answer

By:

Patrick B. answered • 07/01/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Clarissa M.

I don't see the 2 classes & also the interface, which I specified above.
Report

07/01/21

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.