Skip to content
Snippets Groups Projects
Commit 8098a1d6 authored by Stefan Hendricks's avatar Stefan Hendricks :office:
Browse files

add mean basestation distance error

parent 2ea71a69
No related branches found
No related tags found
No related merge requests found
......@@ -918,10 +918,26 @@ class FloeNaviGridSolver(object):
mmsi_permutations.append((entry, other_entry))
return mmsi_permutations
@property
def basestation_distance_error(self):
"""
Computes the average basestation distance error
-> Mean offset between expected and measured basestation distance for all solutions
:return:
"""
mean_distance_error = np.ndarray(shape=(self.n_records, self.n_solutions))
for snum in np.arange(self.n_solutions):
mean_distance_error[:, snum] = np.abs(getattr(self.solutions[snum], "bs_measured_distance_offset"))
return np.nanmean(mean_distance_error, axis=1)
@property
def n_solutions(self):
return len(self.solutions)
@property
def n_records(self):
return self.solutions[0].n_records
class FloeNaviGridSolution(object):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment