Published
Edited
Feb 4, 2021
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
response_eq = u => 1 / (1 - u)
Insert cell
viewof waiting_line = vl.markLine()
.data(Array(95).fill(1).map((a, idx) => idx * 0.01).map(u => ({u, w: waiting_eq(u)})))
.encode(
vl.x().fieldQ("u").title("Server Utilization"),
vl.y().fieldQ("w").title("Normalized Waiting Time W/S"),
).title("Waiting Time vs Server Utilization")
.render()
Insert cell
waiting_eq = u => u / (1 - u)
Insert cell
md`The waiting time follows a similar pattern and is equal to
u / (1 - u) .`
Insert cell
Insert cell
Insert cell
utilization = arrival_rate / service_rate
Insert cell
average_number_in_system = utilization/(1 - utilization)
Insert cell
average_total_system_time = 1 / (service_rate - arrival_rate)
Insert cell
average_waiting_time = average_total_system_time - 1/ service_rate
Insert cell
average_queue_length = average_number_in_system - utilization
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
all_time_units = ['second', 'minute', 'hour', 'day', 'week', 'month', 'year']
Insert cell
import {View} from "@mbostock/synchronized-views"
Insert cell
import { vl } from "@vega/vega-lite-api"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more