Skip to main content

Mean Method

Average value of all archive events in the interval.

Definition​

Namespace: GHost.GSharp.PI.ACE
Assembly: GHost.GSharp.PI.ACE (in GHost.GSharp.PI.ACE.dll) Version: 1.2.44.3 (1.2.44.3)

C#

public double? Mean(
Object startTime,
Object endTime,
double pctGood = 80
)

VB

Public Function Mean ( 
startTime As Object,
endTime As Object,
Optional pctGood As Double = 80
) As Double?

Parameters​

  Object
Timestamp for the beginning of the time range.
  Object
Timestamp for the end of the time range.
  Double  (Optional)
[Optional] Minimum time percentage (double) over the given time range, that the point’s archived values must be good.

Return Value​

Nullable(Double)
Returns the average value of all archive events in the interval.

Remarks​

If the point has no good values or the PctGood minimum is not met for the given time range, returns null and raises an error. Care should be taken when calling this method, as the events are not time-weighted. Use Avg for time weighting.

See Also​

Reference​

PIACEPoint Class
GHost.GSharp.PI.ACE Namespace