if (!timeBeforeHostShutdown.isEmpty()) { meanTimeBeforeHostShutdown = MathUtil.mean(timeBeforeHostShutdown); stDevTimeBeforeHostShutdown = MathUtil.stDev(timeBeforeHostShutdown); medTimeBeforeHostShutdown = MathUtil.median(timeBeforeHostShutdown); if (!timeBeforeContainerMigration.isEmpty()) { meanTimeBeforeContainerMigration = MathUtil.mean(timeBeforeContainerMigration); stDevTimeBeforeContainerMigration = MathUtil.stDev(timeBeforeContainerMigration); medTimeBeforeContainerMigration = MathUtil.median(timeBeforeContainerMigration); if (!activeVm.isEmpty()) { meanActiveVm = MathUtil.mean(activeVm); stDevActiveVm = MathUtil.stDev(activeVm); medActiveVm = MathUtil.median(activeVm); if (!activeHost.isEmpty()) { meanActiveHosts = MathUtil.mean(activeHost); stDevActiveHosts = MathUtil.stDev(activeHost); medActiveHosts = MathUtil.median(activeHost); if (!numberOfContainerMigrations.isEmpty()) { meanNumberOfContainerMigrations = MathUtil.mean(numberOfContainerMigrations); stDevNumberOfContainerMigrations = MathUtil.stDev(numberOfContainerMigrations); medNumberOfContainerMigrations = MathUtil.median(numberOfContainerMigrations); if (!datacenterEnergy.isEmpty()) { meanDatacenterEnergy = MathUtil.mean(datacenterEnergy); stDevDatacenterEnergy = MathUtil.stDev(datacenterEnergy); medDatacenterEnergy = MathUtil.median(datacenterEnergy);
if (!timeBeforeHostShutdown.isEmpty()) { meanTimeBeforeHostShutdown = MathUtil.mean(timeBeforeHostShutdown); stDevTimeBeforeHostShutdown = MathUtil.stDev(timeBeforeHostShutdown); if (!timeBeforeVmMigration.isEmpty()) { meanTimeBeforeVmMigration = MathUtil.mean(timeBeforeVmMigration); stDevTimeBeforeVmMigration = MathUtil.stDev(timeBeforeVmMigration); if (!timeBeforeContainerMigration.isEmpty()) { meanTimeBeforeContainerMigration = MathUtil.mean(timeBeforeContainerMigration); stDevTimeBeforeContainerMigration = MathUtil.stDev(timeBeforeContainerMigration); double executionTimeVmSelectionStDev = MathUtil.stDev(vmAllocationPolicy .getExecutionTimeHistoryVmSelection()); double executionTimeHostSelectionMean = MathUtil.mean(vmAllocationPolicy .getExecutionTimeHistoryHostSelection()); double executionTimeHostSelectionStDev = MathUtil.stDev(vmAllocationPolicy .getExecutionTimeHistoryHostSelection()); double executionTimeVmReallocationMean = MathUtil.mean(vmAllocationPolicy .getExecutionTimeHistoryVmReallocation()); double executionTimeVmReallocationStDev = MathUtil.stDev(vmAllocationPolicy .getExecutionTimeHistoryVmReallocation()); double executionTimeTotalMean = MathUtil.mean(vmAllocationPolicy .getExecutionTimeHistoryTotal()); double executionTimeTotalStDev = MathUtil.stDev(vmAllocationPolicy .getExecutionTimeHistoryTotal()); double executionTimeVmSelectionStDev = MathUtil.stDev(vmAllocationPolicy .getExecutionTimeHistoryVmSelection());
if (!timeBeforeHostShutdown.isEmpty()) { meanTimeBeforeHostShutdown = MathUtil.mean(timeBeforeHostShutdown); stDevTimeBeforeHostShutdown = MathUtil.stDev(timeBeforeHostShutdown); if (!timeBeforeVmMigration.isEmpty()) { meanTimeBeforeVmMigration = MathUtil.mean(timeBeforeVmMigration); stDevTimeBeforeVmMigration = MathUtil.stDev(timeBeforeVmMigration); double executionTimeVmSelectionStDev = MathUtil.stDev(vmAllocationPolicy .getExecutionTimeHistoryVmSelection()); double executionTimeHostSelectionMean = MathUtil.mean(vmAllocationPolicy .getExecutionTimeHistoryHostSelection()); double executionTimeHostSelectionStDev = MathUtil.stDev(vmAllocationPolicy .getExecutionTimeHistoryHostSelection()); double executionTimeVmReallocationMean = MathUtil.mean(vmAllocationPolicy .getExecutionTimeHistoryVmReallocation()); double executionTimeVmReallocationStDev = MathUtil.stDev(vmAllocationPolicy .getExecutionTimeHistoryVmReallocation()); double executionTimeTotalMean = MathUtil.mean(vmAllocationPolicy .getExecutionTimeHistoryTotal()); double executionTimeTotalStDev = MathUtil.stDev(vmAllocationPolicy .getExecutionTimeHistoryTotal()); double executionTimeVmSelectionStDev = MathUtil.stDev(vmAllocationPolicy .getExecutionTimeHistoryVmSelection()); double executionTimeHostSelectionMean = MathUtil.mean(vmAllocationPolicy .getExecutionTimeHistoryHostSelection()); double executionTimeHostSelectionStDev = MathUtil.stDev(vmAllocationPolicy .getExecutionTimeHistoryHostSelection());