Package kroqbd
Object QbdUtils
-
- All Implemented Interfaces:
public class QbdUtilsUtility functions for QBD analysis
-
-
Method Summary
Modifier and Type Method Description final static Doublegg1ResponseTime(Double arrivalMean, Double arrivalSCV, Double serviceMean, Double serviceSCV, Double rho)Calculate G/G/1 response time using Kingman's approximation final static DoubleArraygg1SteadyStateProb(Double arrivalRate, Double serviceRate, Double arrivalSCV, Double serviceSCV, Integer maxQueueLength)Calculate steady-state queue length probabilities for G/G/1 final static IntArraysampleQBD(MatrixCell ARV, MatrixCell serviceProcess, Integer numSamples)Sample from a QBD process final static MatrixCellcreateMAP(Matrix D0, Matrix D1)Create a MAP representation from parameters final static MatrixCellmapShrink(MatrixCell map, Double threshold)Shrink a MAP by removing insignificant states -
-
Method Detail
-
gg1ResponseTime
final static Double gg1ResponseTime(Double arrivalMean, Double arrivalSCV, Double serviceMean, Double serviceSCV, Double rho)
Calculate G/G/1 response time using Kingman's approximation
- Parameters:
arrivalMean- Mean inter-arrival timearrivalSCV- Squared coefficient of variation of arrivalsserviceMean- Mean service timeserviceSCV- Squared coefficient of variation of servicerho- Utilization- Returns:
Mean response time
-
gg1SteadyStateProb
final static DoubleArray gg1SteadyStateProb(Double arrivalRate, Double serviceRate, Double arrivalSCV, Double serviceSCV, Integer maxQueueLength)
Calculate steady-state queue length probabilities for G/G/1
- Parameters:
arrivalRate- Arrival rateserviceRate- Service ratearrivalSCV- Squared coefficient of variation of arrivalsserviceSCV- Squared coefficient of variation of servicemaxQueueLength- Maximum queue length to compute- Returns:
Array of queue length probabilities
-
sampleQBD
final static IntArray sampleQBD(MatrixCell ARV, MatrixCell serviceProcess, Integer numSamples)
Sample from a QBD process
- Parameters:
ARV- Arrival processserviceProcess- Service processnumSamples- Number of samples to generate- Returns:
Queue length samples
-
createMAP
final static MatrixCell createMAP(Matrix D0, Matrix D1)
Create a MAP representation from parameters
- Parameters:
D0- Sub-generator matrixD1- Phase transition matrix- Returns:
MAP as MatrixCell
-
mapShrink
final static MatrixCell mapShrink(MatrixCell map, Double threshold)
Shrink a MAP by removing insignificant states
- Parameters:
map- Input MAPthreshold- Probability threshold for state removal- Returns:
Reduced MAP
-
-
-
-