LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
sampleAggr.m
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().
6
7if nargin < 3 || isempty(numEvents)
8 numEvents = 0;
9end
10sampleResult = self.sample(node, numEvents);
11if ~isempty(sampleResult) && isstruct(sampleResult)
12 sampleResult.isaggregate = true;
13end
14end
Definition Station.m:245