A device detection library that is used natively or by 51Degrees products

fiftyoneDegreesWeightedItem Struct Reference

Detailed Description

A weighted collection item.

Represents a value retrieved from the dataset together with a weight indicating the proportion or confidence of this value (out of 65535^2). Used for profile-level weighting (from profile groups) where the weight indicates the proportion of the matched IP range attributable to this profile, or for value-level weighting stored in the Value record, or both.

Collaboration diagram for fiftyoneDegreesWeightedItem:

[legend]

Data Fields

fiftyoneDegreesCollectionItem item
 The collection item containing the value.
uint32_t rawWeighting
 Weight as uint32_t (0-65535^2, representing 0.0-1.0).

Field Documentation

◆ rawWeighting

uint32_t fiftyoneDegreesWeightedItem::rawWeighting

Weight as uint32_t (0-65535^2, representing 0.0-1.0).

Final/effective weight after multiplying weights from both profile group (or "1") and value (or "1").


The documentation for this struct was generated from the following file: