accumulate_data Interface

interface

Interfaces for the procedure pointers in the aggregator_t type to be implemented by the specific aggregation methods (e.g., mean, sum, min, max).


private subroutine accumulate_data(this, scale, div, offset)

Arguments

Type IntentOptional Attributes Name
class(aggregator_t), intent(inout) :: this
real, intent(in), optional :: scale

An optional scaling factor to apply to the source data before accumulation. Defaults to 1.0 if not provided.

real, intent(in), optional :: div

An optional division factor to apply to the source data before accumulation. Defaults to 1.0 if not provided.

real, intent(in), optional :: offset

An optional offset to add to the source data before accumulation. Defaults to 0.0 if not provided.

Description

Accumulate the aggregated data from the source data.