Sidereon.Geofence.Hysteresis (Sidereon v0.29.1)

Copy Markdown View Source

Confidence thresholds for probabilistic fence crossing.

enter_confidence is the inside probability required before an entered event is emitted. leave_confidence is the outside probability required before a left event is emitted. Both values must be greater than 0.5 and less than 1.0.

Summary

Types

t()

Probability thresholds used by probabilistic crossing detection.

Types

t()

@type t() :: %Sidereon.Geofence.Hysteresis{
  enter_confidence: float(),
  leave_confidence: float()
}

Probability thresholds used by probabilistic crossing detection.

Functions

new(enter_confidence \\ 0.95, leave_confidence \\ 0.95)

@spec new(number(), number()) :: t()

Build a probability hysteresis config.