When I run
Get-ResourcePool -name "RSNAME" | Get-Stat -Stat mem.consumed.average
is Powercli returning a weighted mean (Weighted arithmetic mean - Wikipedia, the free encyclopedia)? Or do I need to take in account that a vm may not have data points for each interval, i.e the vm didn't exist at that time?
It is returning a weighted mean.
Just to avoid all misunderstandings, the weighted average is not done by the Get-Stat cmdlet.
But that is done by the PerformanceManager.
The Get-Stat cmdlet obtains the statistical data by calling a method of the PerformanceManager.