KalmanProfile enum
Specifies the preset tuning profile for the Kalman filter used in location denoising.
Each profile adjusts the Kalman filter's process and measurement noise settings, trading off between responsiveness and smoothness:
| Profile | Behavior |
|---|---|
defaultProfile |
Balanced – General-purpose, suitable for most movement types. |
aggressive |
Aggressive – Responds quickly to changes, less smoothing. |
conservative |
Conservative – Maximum smoothing, slowest to react to changes. |
- The
defaultProfileis used if no profile is specified. - Select
aggressivefor fast-changing, dynamic motion where quick response is needed. - Select
conservativefor activities where smooth, stable tracks are preferred over rapid response.
This setting corresponds to Android’s KalmanProfile and iOS’ equivalent Kalman tuning.
Values
- defaultProfile → const KalmanProfile
-
Balanced for general-purpose movement (default).
This is the default value if no profile is specified.
const KalmanProfile(0) - aggressive → const KalmanProfile
-
Aggressive: responds faster to motion, with less smoothing.
const KalmanProfile(1) - conservative → const KalmanProfile
-
Conservative: maximum smoothing, slower to react to sudden changes.
const KalmanProfile(2)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
final
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromId(
int id) → KalmanProfile - Converts an integer ID (from native) to a KalmanProfile.
Constants
-
values
→ const List<
KalmanProfile> - A constant List of the values in this enum, in order of their declaration.