Commit Graph

10 Commits

Author SHA1 Message Date
Matteo Cypriani 596c72b7a8 [Positioner] Option ss-similarity
The option positioning.ss-similarity introduced in this commit allows to
chose the desired algorithm to compare two measurements. One can chose
between the historical mean euclidean distance algorithm and the new
algorithm using the number of values within the interval
[mean-std.dev.;mean+std.dev.].
2012-05-02 17:32:00 +02:00
Matteo Cypriani f14c1de473 [Positioner] Add Measurement::get_ss(pkt_id) 2012-05-02 17:32:00 +02:00
Matteo Cypriani 2cc7f373dd [Positioner] Add Measurement::get_std_deviation() 2012-05-02 17:32:00 +02:00
Matteo Cypriani dad6e0aa11 [Positioner] Measurement::variance_square_distance() 2012-05-02 17:32:00 +02:00
Matteo Cypriani dcd902c9f0 [Positioner] Measurement: use floats, not doubles
Use floats variables for the average and variance.
2012-05-02 17:32:00 +02:00
Matteo Cypriani 7de5499816 [Positioner] Measurement::get_ss_list_size() -> get_nb_ss() 2012-05-02 17:31:59 +02:00
Matteo Cypriani 24622e4c3a [Positioner] Measurement: compute the variance
The variance is now computed along with the average. Measurement has
three new attributes:
  - average_mw (average in mW),
  - variance,
  - variance_m2 (variable used for the variance calculation).
In addition, average_ss has been renamed average_dbm (ditto for its
getter).

The computation method of the average has been changed to allow the
computation of the variance simultaneously.
2012-05-02 17:31:59 +02:00
Matteo Cypriani 055dca7711 [Positioner] Measurement: declare type pkt_id_t
Like ss_t, pkt_id_t is now declared in measurement.hh to help use the
same type everywhere for packet IDs.
2012-02-08 10:52:39 +01:00
Matteo Cypriani 1533852a1f [Positioner] Handle the packet numbering
In Measurement, the SSs are now stored in a map (instead of a vector),
along with their packet IDs.
2012-02-08 10:52:39 +01:00
Matteo Cypriani d5e2c975ae Rename Positioning -> Positioner
To be consistent with the other modules, the positioning server must be
called OwlPS Positioner instead of Positioning, and the executable
owlps-positionerd (even if the daemon mode is not implemented yet).
That's a big commit for a tiny change.
2012-02-06 17:48:43 +01:00