viewof agg_sampleRateHz = Inputs.range([0.1, 100], {value: 1, step: 0.1, label: "Sensor Sample Rate (Hz)"})
viewof agg_windowSize = Inputs.range([5, 600], {value: 60, step: 5, label: "Aggregation Window (samples)"})
viewof agg_rawPayload = Inputs.range([4, 64], {value: 20, step: 2, label: "Raw Payload per Sample (bytes)"})
viewof agg_summaryPayload = Inputs.range([16, 128], {value: 32, step: 4, label: "Summary Payload (bytes)"})Try It: Edge Aggregation Data Reduction
Try It: Edge Aggregation Data Reduction
animation
analytics-ml
edge-acquisition
Try Change Aggregation Window (samples), then press Calculate.
Observe After Calculate, watch Window Duration, Reduction Factor, and Bandwidth Saved.
Explain Describe how aggregation window size changes Aggregated Summaries after Calculate.
Technical boundaries. Each summary contains min, max, mean, and sample count, replacing individual sample transmissions. Data volume calculations use the entered sampling rate and payload sizes.
NoteTry It: Edge Aggregation Data Reduction
Adjust the sensor sampling rate and aggregation window size to see how edge aggregation reduces data volume. The widget calculates the bandwidth reduction and shows what information is preserved versus lost.
agg_windowDuration = agg_windowSize / agg_sampleRateHz
agg_rawPerHour = agg_sampleRateHz * 3600
agg_summariesPerHour = 3600 / agg_windowDuration
agg_rawBytesPerHour = agg_rawPerHour * agg_rawPayload
agg_summaryBytesPerHour = agg_summariesPerHour * agg_summaryPayload
agg_reductionFactor = agg_rawBytesPerHour / agg_summaryBytesPerHour
agg_rawDayKB = (agg_rawBytesPerHour * 24) / 1024
agg_summaryDayKB = (agg_summaryBytesPerHour * 24) / 1024
agg_pctReduction = ((agg_rawBytesPerHour - agg_summaryBytesPerHour) / agg_rawBytesPerHour) * 100html`<div style="background: var(--bs-light, #f8f9fa); border: 1px solid var(--bs-border-color, #dee2e6); border-radius: 8px; padding: 1.2rem; color: var(--bs-body-color);">
<h4 style="margin-top:0; color: #2C3E50;">Edge Aggregation Data Reduction</h4>
<div style="display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.8rem; margin-bottom: 1rem;">
<div style="text-align: center; padding: 0.6rem; background: rgba(231,76,60,0.08); border-radius: 6px;">
<div style="font-size: 0.8rem; color: #374151;">Raw Transmissions</div>
<div style="font-size: 1.3rem; font-weight: bold; color: #9f1d1d;">${agg_rawPerHour.toFixed(0)}/hr</div>
</div>
<div style="text-align: center; padding: 0.6rem; background: rgba(22,160,133,0.08); border-radius: 6px;">
<div style="font-size: 0.8rem; color: #374151;">Aggregated Summaries</div>
<div style="font-size: 1.3rem; font-weight: bold; color: #0f6b5c;">${agg_summariesPerHour.toFixed(1)}/hr</div>
</div>
<div style="text-align: center; padding: 0.6rem; background: rgba(230,126,34,0.08); border-radius: 6px;">
<div style="font-size: 0.8rem; color: #374151;">Reduction Factor</div>
<div style="font-size: 1.3rem; font-weight: bold; color: #8a4a00;">${agg_reductionFactor.toFixed(0)}x</div>
</div>
</div>
<table style="width:100%; border-collapse: collapse; font-size: 0.9rem;">
<tr style="border-bottom: 1px solid var(--bs-border-color, #dee2e6);">
<th scope="row" style="padding: 5px 8px; font-weight: normal; text-align: left;"><strong>Window Duration</strong></th>
<td style="padding: 5px 8px; text-align: right;">${agg_windowDuration < 60 ? agg_windowDuration.toFixed(1) + " sec" : (agg_windowDuration/60).toFixed(1) + " min"}</td>
</tr>
<tr style="border-bottom: 1px solid var(--bs-border-color, #dee2e6);">
<th scope="row" style="padding: 5px 8px; font-weight: normal; text-align: left;"><strong>Raw Daily Volume</strong></th>
<td style="padding: 5px 8px; text-align: right; color: #9f1d1d;">${agg_rawDayKB < 1024 ? agg_rawDayKB.toFixed(1) + " KB" : (agg_rawDayKB/1024).toFixed(2) + " MB"}</td>
</tr>
<tr style="border-bottom: 1px solid var(--bs-border-color, #dee2e6);">
<th scope="row" style="padding: 5px 8px; font-weight: normal; text-align: left;"><strong>Aggregated Daily Volume</strong></th>
<td style="padding: 5px 8px; text-align: right; color: #0f6b5c;">${agg_summaryDayKB < 1024 ? agg_summaryDayKB.toFixed(1) + " KB" : (agg_summaryDayKB/1024).toFixed(2) + " MB"}</td>
</tr>
<tr>
<th scope="row" style="padding: 5px 8px; font-weight: normal; text-align: left;"><strong>Bandwidth Saved</strong></th>
<td style="padding: 5px 8px; text-align: right; color: #0d47a1; font-weight: bold;">${agg_pctReduction.toFixed(1)}%</td>
</tr>
</table>
<p style="margin-top: 0.8rem; padding: 0.5rem; background: rgba(52,152,219,0.06); border-radius: 4px; font-size: 0.85rem;">
<strong>Summary contents:</strong> Each ${agg_summaryPayload}-byte summary contains min, max, mean, and sample count for a ${agg_windowDuration < 60 ? agg_windowDuration.toFixed(0) + "-second" : (agg_windowDuration/60).toFixed(1) + "-minute"} window of ${agg_windowSize} samples, replacing ${agg_windowSize} individual ${agg_rawPayload}-byte transmissions.
</p>
</div>`