Class Ret.DistributionResult
-
- All Implemented Interfaces:
public class Ret.DistributionResultUnified result type for distribution computations in queueing network solvers.
This class provides a standardized interface for returning cumulative distribution functions (CDFs) from various distribution analyses including:
- Response time distributions
- Passage time distributions
- Queue length distributions
- Transient distributions at specific time points
The CDF data is organized as a 2D structure indexed by [station][class], where each element contains a matrix of [quantile, value] pairs representing the empirical CDF.
-
-
Field Summary
Fields Modifier and Type Field Description public List<List<Matrix>>cdfDatapublic intnumStationspublic intnumClassespublic StringdistributionTypepublic booleanisTransientpublic MatrixtimePointspublic doubleruntime
-
Constructor Summary
Constructors Constructor Description Ret.DistributionResult()Default constructor. Ret.DistributionResult(int numStations, int numClasses, String distributionType)Constructor for steady-state distributions. Ret.DistributionResult(int numStations, int numClasses, String distributionType, Matrix timePoints)Constructor for transient distributions.
-
Method Summary
Modifier and Type Method Description voidsetCdf(int station, int jobClass, Matrix cdf)Sets the CDF for a specific station and class. MatrixgetCdf(int station, int jobClass)Gets the CDF for a specific station and class. voidsetExponentialApproximation(int station, int jobClass, double meanValue)Sets an exponential approximation CDF based on mean value. booleanhasCdf(int station, int jobClass)Checks if the CDF data is available for a specific station and class. List<List<Matrix>>getAllCdfData()Gets the complete CDF data structure. -
-
Constructor Detail
-
Ret.DistributionResult
Ret.DistributionResult()
Default constructor.
-
Ret.DistributionResult
Ret.DistributionResult(int numStations, int numClasses, String distributionType)
Constructor for steady-state distributions.- Parameters:
numStations- number of stationsnumClasses- number of classesdistributionType- type of distribution
-
Ret.DistributionResult
Ret.DistributionResult(int numStations, int numClasses, String distributionType, Matrix timePoints)
Constructor for transient distributions.- Parameters:
numStations- number of stationsnumClasses- number of classesdistributionType- type of distributiontimePoints- time points for transient analysis
-
-
Method Detail
-
setCdf
void setCdf(int station, int jobClass, Matrix cdf)
Sets the CDF for a specific station and class.
- Parameters:
station- station indexjobClass- class indexcdf- CDF matrix with [quantile, value] pairs
-
getCdf
Matrix getCdf(int station, int jobClass)
Gets the CDF for a specific station and class.
- Parameters:
station- station indexjobClass- class index- Returns:
CDF matrix with [quantile, value] pairs
-
setExponentialApproximation
void setExponentialApproximation(int station, int jobClass, double meanValue)
Sets an exponential approximation CDF based on mean value. This is used as a default approximation when exact CDFs are not available.
- Parameters:
station- station indexjobClass- class indexmeanValue- mean value for the exponential distribution
-
hasCdf
boolean hasCdf(int station, int jobClass)
Checks if the CDF data is available for a specific station and class.
- Parameters:
station- station indexjobClass- class index- Returns:
true if CDF data is available
-
getAllCdfData
List<List<Matrix>> getAllCdfData()
Gets the complete CDF data structure.
- Returns:
the CDF data as a list of lists of matrices
-
-
-
-