Skip to content

Commit d6f55ec

Browse files
author
Raphael Kubo da Costa
committed
Remove mentions of "reading change threshold".
... And the accompanying "Reading change threshold" section. With the introduction of the "threshold check algorithm", this section is a bit simplistic and is no longer necessary, as it only covers thresholds provided by the device sensor or the operating system.
1 parent 1e0e2c9 commit d6f55ec

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

index.bs

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,8 @@ thus user agents should not provide
513513
unnecessarily verbose readouts of sensors data.
514514

515515
Implementations of concrete sensors may define a [=threshold check algorithm=]
516-
so that new readings that do not meet the [=reading change threshold=] when
517-
compared to the [=latest readings=] are discarded.
516+
so that new readings that do not differ enough from the [=latest readings=] are
517+
discarded.
518518

519519
Implementations of concrete sensors may define a [=reading quantization
520520
algorithm=] to reduce the accuracy of the [=sensor readings=] received from a
@@ -725,19 +725,6 @@ define ways to uniquely identify each one.
725725
</pre>
726726
</div>
727727

728-
## Reading change threshold ## {#concepts-reading-change-threshold}
729-
730-
A [=platform sensor=] reports [=sensor readings|readings=] to the user agent considering
731-
the [=reading change threshold=].
732-
733-
The <dfn>reading change threshold</dfn> refers to a value which indicates whether or
734-
not the changes in the [=device sensor=]'s measurements were significant enough to
735-
update the corresponding [=sensor readings=].
736-
737-
The [=reading change threshold|threshold=] value depends on the surrounding software and hardware
738-
environment constraints, e.g., software power consumption optimizations or the underlying
739-
[=device sensor=]'s accuracy.
740-
741728
## Sampling Frequency and Reporting Frequency ## {#concepts-sampling-and-reporting-frequencies}
742729

743730
For the purpose of this specification, <dfn>sampling frequency</dfn> for a [=platform sensor=] is
@@ -753,8 +740,12 @@ can support it.
753740
The [=sampling frequency=] differs from the [=requested sampling frequency=] in the following cases:
754741
- the [=requested sampling frequency=] exceeds upper or lower [=sampling frequency=] bounds
755742
supported by the underlying platform.
756-
- the [=reading change threshold|threshold=] value is significant so that some of the
757-
[=device sensor=]'s measurements are skipped and the [=sensor readings=] are not updated.
743+
- the operating system and/or the [=device sensor=] automatically discard
744+
readings that do not differ enough (in absolute or relative terms) from the
745+
previously reported ones via a hardware or operating system filter.
746+
- the [=platform sensor=]'s associated [=sensor type=]'s [=threshold check
747+
algorithm=] fails and the [=platform sensor=]'s [=latest readings=] are not
748+
updated.
758749

759750
The <dfn>reporting frequency</dfn> for a concrete {{Sensor}} object is defined as a frequency at which
760751
the "reading" event is [=fire an event|fired=] at this object.
@@ -819,8 +810,8 @@ A [=sensor type=] has a [=set/is empty|nonempty=] [=ordered set|set=] of associa
819810

820811
A [=sensor type=] may have an associated <dfn export>threshold check
821812
algorithm</dfn>, which takes as arguments two separate [=sensor readings=] and
822-
determines if the difference between them is higher than an
823-
implementation-defined [=reading change threshold=].
813+
determines if they differ enough to cause a [=platform sensor=]'s [=latest
814+
reading=] map to be updated.
824815

825816
A [=sensor type=] may have an associated <dfn export>reading quantization
826817
algorithm</dfn>, which takes a [=sensor reading=] and returns a less accurate

0 commit comments

Comments
 (0)