PassThroughAlgorithm

class PassThroughAlgorithm(profile: TuningProfile = defaultProfile()) : MileageAlgorithm

Trust the source; filter nothing.

This is the posture of an app that delegates motion detection to a background-geolocation SDK: the SDK has already decided what a real movement is, so re-filtering its output would be second-guessing a black box with worse information than it had.

It is also the honest benchmark baseline. Every claim of the form "our filtering improves accuracy" is meaningless without a number for "what if we did nothing at all" — this class is that number. Keep it even if no product ever ships it.

The one thing it does do is drop exact duplicates. Duplicate delivery of the same fix is a transport artefact, not a movement, and counting one twice is a bug under any philosophy.

Constructors

Link copied to clipboard
constructor(profile: TuningProfile = defaultProfile())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val id: AlgorithmId

Stable identity, used for persistence, selection and shadow-mode result attribution.

Link copied to clipboard
open override val knobs: List<KnobSpec>

The knobs this algorithm understands. Drives generic tuning UI and automated sweeps.

Functions

Link copied to clipboard
open fun flush(): List<FixResult>

Emit anything still buffered and end the journey.

Link copied to clipboard
open override fun process(fix: Fix): FixResult

Consume one fix and report what it contributed.

Link copied to clipboard
open override fun reset(session: SessionContext)

Begin a new journey. Must clear all accumulated state.

Link copied to clipboard
open override fun restore(state: AlgorithmState)

Resume from a snapshot.

Link copied to clipboard
open override fun snapshot(): AlgorithmState

Capture enough state to resume this journey later. Must round-trip with restore.