This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clear all; close all; clc | |
%% Exercise 3-1A | |
% find reasonable best-fit polynomial for data1 and data2 | |
data1 = load('data1.txt'); | |
data2 = load('data2.txt'); | |
data3 = load('data3.txt'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void updateStats(double dt) | |
{ | |
if(TNOW>endTime*warmUp) | |
{ | |
double totalinsystemdt = serversLevels[1].size()+2*serversLevels[2].size()+3*serversLevels[3].size()+4*serversLevels[4].size()+queueVector.size(); | |
//if(TNOW>9950){ | |
//System.out.println("-----------------------"); | |
//System.out.println("Time elapsed: " +dt); | |
//System.out.println("Z1: "+serversLevels[1].size()+" Z2: "+serversLevels[2].size()+" Z3: "+serversLevels[3].size()+" Z4: "+serversLevels[4].size()+" Q: "+queueVector.size()+ " Total: "+totalinsystemdt); |