Package jline.api.mam
Class Me_sample.MeSampler
java.lang.Object
jline.api.mam.Me_sample.MeSampler
- Enclosing class:
Me_sample
Stateful ME sampler that builds the inverse-CDF table once and draws
independent variates from it.
The inter-event times of an ME renewal process are i.i.d., so unlike
Map_sample.MapSampler this sampler carries no phase across calls;
the state it holds is the inversion table, which is what makes repeated
single-sample calls (the LDES usage pattern) cheap.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MeSampler
Builds the inversion table for the ME representation (alpha, A).- Parameters:
alpha- the initial vector, as a row or column vectorA- the ME matrix parameter (square, eigenvalues with negative real part)
-
-
Method Details
-
next
Draws one variate by inverting the ME cumulative distribution function.- Parameters:
random- the uniform random source- Returns:
- a sample from the ME distribution
-