new_aggregator: Create an Aggregator object

View source: R/aggregator-class.R

new_aggregatorR Documentation

Create an Aggregator object

Description

Creates a new Aggregator object.

Usage

new_aggregator(label, aggregate)

Arguments

label

a human readable label

aggregate

a function with argument ev that is a list of length equal to the number of draws with each element itself being a named list. Each element of this list corresponds to a metric that has been computed. In particular, given an Evals object o, aggregate takes as input o@evals[[method_name]] (which is a list of the kind just described). The function aggregate should return a scalar.


simulator documentation built on Feb. 16, 2023, 9:34 p.m.