-
public final class BehaviorSnapshotA point-in-time snapshot of behavioral signals. Mirrors
BehaviorStatsfrom synheart-behavior-kotlin field-for-field but lives in synheart-session to avoid an import dependency.
-
-
Field Summary
Fields Modifier and Type Field Description private final DoubletypingCadenceprivate final DoubleinterKeyLatencyprivate final IntegerburstLengthprivate final DoublescrollVelocityprivate final DoublescrollAccelerationprivate final DoublescrollJitterprivate final DoubletapRateprivate final IntegerappSwitchesPerMinuteprivate final DoubleforegroundDurationprivate final DoubleidleGapSecondsprivate final DoublestabilityIndexprivate final DoublefragmentationIndexprivate final Longtimestamp
-
Constructor Summary
Constructors Constructor Description BehaviorSnapshot(Double typingCadence, Double interKeyLatency, Integer burstLength, Double scrollVelocity, Double scrollAcceleration, Double scrollJitter, Double tapRate, Integer appSwitchesPerMinute, Double foregroundDuration, Double idleGapSeconds, Double stabilityIndex, Double fragmentationIndex, Long timestamp)
-
Method Summary
Modifier and Type Method Description final DoublegetTypingCadence()Current typing cadence (keys per second). final DoublegetInterKeyLatency()Current inter-key latency in milliseconds. final IntegergetBurstLength()Current burst length (number of keys in current burst). final DoublegetScrollVelocity()Current scroll velocity (pixels per second). final DoublegetScrollAcceleration()Current scroll acceleration (pixels per second squared). final DoublegetScrollJitter()Current scroll jitter (variance in scroll speed). final DoublegetTapRate()Current tap rate (taps per second). final IntegergetAppSwitchesPerMinute()Number of app switches in the last minute. final DoublegetForegroundDuration()Current foreground duration in seconds. final DoublegetIdleGapSeconds()Current idle gap duration in seconds. final DoublegetStabilityIndex()Current session stability index (0.0 to 1.0). final DoublegetFragmentationIndex()Current fragmentation index (0.0 to 1.0). final LonggetTimestamp()Timestamp when these stats were captured. -
-
Constructor Detail
-
BehaviorSnapshot
BehaviorSnapshot(Double typingCadence, Double interKeyLatency, Integer burstLength, Double scrollVelocity, Double scrollAcceleration, Double scrollJitter, Double tapRate, Integer appSwitchesPerMinute, Double foregroundDuration, Double idleGapSeconds, Double stabilityIndex, Double fragmentationIndex, Long timestamp)
-
-
Method Detail
-
getTypingCadence
final Double getTypingCadence()
Current typing cadence (keys per second).
-
getInterKeyLatency
final Double getInterKeyLatency()
Current inter-key latency in milliseconds.
-
getBurstLength
final Integer getBurstLength()
Current burst length (number of keys in current burst).
-
getScrollVelocity
final Double getScrollVelocity()
Current scroll velocity (pixels per second).
-
getScrollAcceleration
final Double getScrollAcceleration()
Current scroll acceleration (pixels per second squared).
-
getScrollJitter
final Double getScrollJitter()
Current scroll jitter (variance in scroll speed).
-
getTapRate
final Double getTapRate()
Current tap rate (taps per second).
-
getAppSwitchesPerMinute
final Integer getAppSwitchesPerMinute()
Number of app switches in the last minute.
-
getForegroundDuration
final Double getForegroundDuration()
Current foreground duration in seconds.
-
getIdleGapSeconds
final Double getIdleGapSeconds()
Current idle gap duration in seconds.
-
getStabilityIndex
final Double getStabilityIndex()
Current session stability index (0.0 to 1.0).
-
getFragmentationIndex
final Double getFragmentationIndex()
Current fragmentation index (0.0 to 1.0).
-
getTimestamp
final Long getTimestamp()
Timestamp when these stats were captured.
-
-
-
-