Package jline.solvers.ldes.handlers
Class Solver_ssj
java.lang.Object
jline.solvers.ldes.handlers.Solver_ssj
Top-level Java translation of Solver_ssj.kt.
Hosts the public top-level functions (solver_ssj, solver_ssj_transient) as
static methods and the package-internal
SSJSimulator class as a
nested static class.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCustom random variate generator for deterministic (constant) values. -
Method Summary
Modifier and TypeMethodDescriptioncomputeOBMStatistics(List<Double> observations, int batchSize) Compute OBM (Overlapping Batch Means) statistics with 50% overlap.computeSpectralStatistics(List<Double> observations, int batchSize) Overload for default lowFreqFrac = 0.25.computeSpectralStatistics(List<Double> observations, int batchSize, double lowFreqFrac) Compute Heidelberger-Welch spectral analysis statistics.computeStandardBatchMeansStatistics(List<Double> observations, int batchSize) Compute standard (non-overlapping) batch means statistics.static doublegetTCriticalValue(double confintLevel, int df) Get t-distribution critical value for given confidence level and degrees of freedom.static LDESResultsolver_ssj(NetworkStruct sn, SolverOptions options) static LDESResultsolver_ssj(NetworkStruct sn, SolverOptions options, Collector stream) Steady-state queueing network simulation using the SSJ library.static LDESResultsolver_ssj_transient(NetworkStruct sn, SolverOptions options) static LDESResultsolver_ssj_transient(NetworkStruct sn, SolverOptions options, Collector stream) Transient analysis of queueing network using the SSJ library.
-
Method Details
-
solver_ssj
Steady-state queueing network simulation using the SSJ library. -
solver_ssj
-
solver_ssj_transient
public static LDESResult solver_ssj_transient(NetworkStruct sn, SolverOptions options, Collector stream) Transient analysis of queueing network using the SSJ library. -
solver_ssj_transient
-
computeOBMStatistics
public static org.apache.commons.lang3.tuple.Triple<Double,Double, computeOBMStatisticsInteger> (List<Double> observations, int batchSize) Compute OBM (Overlapping Batch Means) statistics with 50% overlap. Exposed as static helper for testing.- Parameters:
observations- List of observations to analyzebatchSize- Size of each batch- Returns:
- jline.util.Triple(grandMean, stdError, effectiveDf) or null if insufficient data
-
getTCriticalValue
public static double getTCriticalValue(double confintLevel, int df) Get t-distribution critical value for given confidence level and degrees of freedom. Exposed as static helper for testing.- Parameters:
confintLevel- Confidence level (e.g., 0.95 for 95% CI)df- Degrees of freedom- Returns:
- Critical value from t-distribution
-
computeStandardBatchMeansStatistics
public static org.apache.commons.lang3.tuple.Triple<Double,Double, computeStandardBatchMeansStatisticsInteger> (List<Double> observations, int batchSize) Compute standard (non-overlapping) batch means statistics. Exposed as static helper for testing comparison with OBM.- Parameters:
observations- List of observations to analyzebatchSize- Size of each batch- Returns:
- jline.util.Triple(grandMean, stdError, effectiveDf) or null if insufficient data
-
computeSpectralStatistics
public static org.apache.commons.lang3.tuple.Triple<Double,Double, computeSpectralStatisticsInteger> (List<Double> observations, int batchSize, double lowFreqFrac) Compute Heidelberger-Welch spectral analysis statistics. Exposed as static helper for testing. Uses log-periodogram regression at low frequencies to estimate the spectral density at frequency zero, which accounts for autocorrelation between batches.- Parameters:
observations- List of observations to analyzebatchSize- Size of each batchlowFreqFrac- Fraction of lowest frequencies to use for regression (default 0.25)- Returns:
- jline.util.Triple(grandMean, stdError, df) or null if insufficient data or regression fails
-
computeSpectralStatistics
public static org.apache.commons.lang3.tuple.Triple<Double,Double, computeSpectralStatisticsInteger> (List<Double> observations, int batchSize) Overload for default lowFreqFrac = 0.25.
-