0

I am trying to use TinyDB in microPython to do the following.

If my JSON db file includes ten sets of points defined as follows:

Points1.a
Points1.b
Points1.c
...
Points10.a
Points10.b
Points10.c

where I want to compare all 10 a, b, and c to three test values (a2, b2, c2) to find the set of points closest using RMSE:

err = math.sqrt(math.pow((a - a2), 2) + math.pow((b - b2), 2) + math.pow((c - c2), 2))

I was looking at doing a Points.test() with a function, but that does not seem to be working. Any ideas on how I can find which point (of the 10) has the minimum error for a, b, and c?

pbhuter
  • 373
  • 1
  • 4
  • 17

0 Answers0