public class DatasetEnhancer
extends java.lang.Object
Takes in a dataset produced by the DatasetProducer and generates two more columns:
average latency over a time period and latency variance over that time period
The output is a comma delimited file with a header. The datapoints are printed in this order:
hour, day, rate, size, bandwidth, latency, jitter, packet loss, prediction, average latency, latency variance
Description of data:
All original data points are specified in the documentation for the Datasetproducer.
Average Latency: this is the average latency over a time period specified in the command line.
Latency Variance: the variance (not standard deviation) of the latency over the time period specified on the command line.
For example, if the time period is 5 minutes, each data point will have the average latency over
the past five minutes and the variance of latency over the past five minutes.
The first row will not have an average latency or a latency variance because it is the first data point.
The second row will not have a latency variance because the number produced using the variance equation
is too small for IEEE standards and is produced as a NaN.
Arguments:
datasetInputFile - the dataset to enhance
oldDataset - are there minutes included in the dataset, if not it will adjust (backward compatability)
timePeriod - the time period to measure in milliseconds
outputFile - the path to the output file
- Author:
- Amanda Carbonari
Date: March 11, 2015