EvaluateActivityThresholds function (sensorsutils.h)

This routine determines whether the new incoming activity data meets the threshold.

Note that the samples must be sorted and filtered data. Use CollectionsListSortSubscribedActivitiesByConfidence function to sort and filter data.

Syntax

BOOLEAN EvaluateActivityThresholds(
  [in] PSENSOR_COLLECTION_LIST newSample,
  [in] PSENSOR_COLLECTION_LIST oldSample,
  [in] PSENSOR_COLLECTION_LIST thresholds
);

Parameters

[in] newSample

Incoming activity data, as a sensor collection list.

[in] oldSample

Last reported activity data, as a sensor collection list.

[in] thresholds

Activity detection thresholds, as a sensor collection list.

Return value

This function returns TRUE if succeeded, FALSE otherwise.

Requirements

Requirement Value
Header sensorsutils.h