Package jline.inference.api
Class VariationalSpec
java.lang.Object
jline.inference.api.VariationalSpec
Inference problem handed to
Infer_variational.
Station-class pairs are flattened column-major, so that pair (m,r) sits at
index r*M+m, matching the MATLAB, Python and C++ specifications. Station and
class indices inside arcs are one-based; index 0 marks the external
source or sink.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble[](P) Gamma prior shapes.int[](T) index in 1..P of the rate governing the transition, 0 when known.double[](T) known rate for transitions with arcparam == 0.int[][](T x 3) transitions [i j c]; i==0 external source, j==0 sink.double[](P) Gamma prior rates.double[](M*R) upper bound on the queue length, infinite by default.doubleprobability that a reading is faulty.double[](M) number of servers.double[][](K x M*R) observed queue lengths, NaN where not observed.double[](M*R) support size of the uniform contamination.double[](K) observation epochs.double[](T) routing probability of each transition.int[](M) discipline codes: 0 = infinite server, 1 = shared server, 2 = external.double[][](M x R) initial queue lengths. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
arcs
public int[][] arcs(T x 3) transitions [i j c]; i==0 external source, j==0 sink. -
x0
public double[][] x0(M x R) initial queue lengths. -
sched
public int[] sched(M) discipline codes: 0 = infinite server, 1 = shared server, 2 = external. -
nservers
public double[] nservers(M) number of servers. -
routeprob
public double[] routeprob(T) routing probability of each transition. -
arcparam
public int[] arcparam(T) index in 1..P of the rate governing the transition, 0 when known. -
arcrate
public double[] arcrate(T) known rate for transitions with arcparam == 0. -
alpha0
public double[] alpha0(P) Gamma prior shapes. -
beta0
public double[] beta0(P) Gamma prior rates. -
obsTimes
public double[] obsTimes(K) observation epochs. -
obsData
public double[][] obsData(K x M*R) observed queue lengths, NaN where not observed. -
obsRange
public double[] obsRange(M*R) support size of the uniform contamination. -
epsilon
public double epsilonprobability that a reading is faulty. -
capacity
public double[] capacity(M*R) upper bound on the queue length, infinite by default. In a closed network this is the chain population, and clamping the load there keeps the expanded state space from crediting a station with more jobs than the network holds.
-
-
Constructor Details
-
VariationalSpec
public VariationalSpec()
-
-
Method Details
-
nstations
public int nstations() -
nclasses
public int nclasses() -
narcs
public int narcs() -
nparams
public int nparams() -
flatten
public static double[] flatten(double[][] a) Flattened (M*R) copy of a station-class array, column-major.
-