1function sampleResult = sampleAggr(self, node, numEvents)
2% SAMPLERESULT = SAMPLEAGGR(NODE, NUMEVENTS)
3% Aggregated sample path
for a stateful node. For LDES
the sample path
is
4% already per-
class queue lengths, so this equals sample() marked aggregated.
5% Fully JSON-mediated (see sample()). Mirrors
the Python-native sampleAggr().
7if nargin < 3 || isempty(numEvents)
10sampleResult = self.sample(node, numEvents);
11if ~isempty(sampleResult) && isstruct(sampleResult)
12 sampleResult.isaggregate =
true;