API reference
API reference
Select your platform
No SDKs available
No versions available

FeatureStateProvider Class

A helper class that keeps track of the current state of features, quantized into corresponding FeatureStates.
Others
TFeature
An enum containing all features that can be tracked.
TFeatureState
An enum of all the possible states of each member of the TFeature param. The name of each member of this enum must be prefixed with one of the values of TFeature.

Properties

This should be updated with current value of the input data frameId.
It is used to determine if values need to be recalculated.

Member Functions

FeatureStateProvider
( Func< TFeature, float?> valueReader,
Func< TFeature, int > featureToInt,
Func< float > timeProvider )
void InitializeThresholds
( IFeatureThresholds< TFeature, TFeatureState > featureThresholds )
IFeatureStateThresholds< TFeature, TFeatureState >[] ValidateFeatureThresholds
( IReadOnlyList< IFeatureStateThresholds< TFeature, TFeatureState > > featureStateThresholdsList )
TFeatureState GetCurrentFeatureState
( TFeature feature )
void ReadTouchedFeatureStates ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon