Skip to content

Latest commit

 

History

History
62 lines (40 loc) · 1.03 KB

AverageCalculator.md

File metadata and controls

62 lines (40 loc) · 1.03 KB

AverageCalculator Class

Calculates the average of a set of values.

Since

3/23/2024

Group Soql Engine

Author Zackary Frazier

Implements

IAggregateCalculator

Constructors

AverageCalculator(options)

Constructor for the AverageCalculator class

Signature

public AverageCalculator(AggregateCalculatorOptions options)

Parameters

Name Type Description
options AggregateCalculatorOptions

Methods

calculate()

Calculates the average of a set of values.

Signature

public ProtoAggregate calculate()

Return Type

ProtoAggregate

,[object Object]


calculateForField()

Calculate the average for the field specified in the alias field of options, of the grouped records of the aggregateResult field of options

Signature

public Object calculateForField()

Return Type

Object

,[object Object]