utils/reputation_utils library

Functions

calculateAverageDelay(List<int> delays) double
Returns the average delay recorded for a device.
calculateThroughput(List<PacketMetrics> packets) double
Calculates the throughput (in kbps) of a list of packets. Assumes all packets are from the same device.
normalize(double x, double min, double max) double
Normalizes a value x between min and max.