Function covarp
covarp(
attributeA,attributeB,name?):CalculatedMeasure
Calculates the covariance between two given numeric attributes across the entire population (all items).
Parameters
| Parameter | Type | Description |
|---|---|---|
attributeA | Attribute | First attribute |
attributeB | Attribute | Second attribute |
name? | string | Optional name for the new measure |
Returns
A measure instance
Example
Returns the covariance (population) between Revenue and Cost
measureFactory.covarp(DM.Commerce.Revenue, DM.Commerce.Cost)