Products Downloads


French version


 

This function returns the weighted mean of a number sequence according to a second number sequence representing the weight.

The weights must be positive numbers. The two sequences must be of identical size.

 

Parameters

Number sequence

seqValues

Number sequence

Mandatory

Number sequence

tabWeights

Number sequence (weights)

Mandatory

 


For example

<#assign seqValues = [1.1, 0.5, -5.89]/>
<#assign seqWeights = [2.5, 5.4, 1.23]/>
${ hardisCore.weightedMean(seqValues, seqWeights) }