List<Input> inputs = new ArrayList<>();
for (int i = 0; i < input.getChannelCount(); i++) {
inputs.add(new Input(i, 0));
}
AggregationFunctionDefinition definition = aggregation(function, inputs);
Aggregator aggregator = createAggregator(definition, Step.PARTIAL);
aggregator.addValue(input);
return new Page(aggregator.getResult());