25package umontreal.ssj.randvar;
27import umontreal.ssj.rng.*;
28import umontreal.ssj.util.NativeUtils;
42 protected double[] unifArray =
null;
43 protected double[] unifAuxArray =
null;
47 protected long nativeParams = 0;
49 protected RandUnuran() {
52 protected native
void init(String genStr);
54 protected void finalize() {
58 public native
void close();
61 protected native
int getRandDisc(
double u,
long np);
63 protected native
double getRandCont(
double u,
long np);
65 protected native
void getRandVec(
double u,
long np,
double[] vec);
68 protected native
void getRandDiscArray(
long np,
double[] u,
double[] uaux,
int[] v,
int start,
int n);
70 protected native
void getRandContArray(
long np,
double[] u,
double[] uaux,
double[] v,
int start,
int n);
73 protected native
boolean isDiscrete();
75 protected native
boolean isContinuous();
77 protected native
boolean isContinuousMultivariate();
79 protected native
boolean isEmpirical();
81 protected native
boolean isEmpiricalMultivariate();
86 }
catch (java.io.IOException e) {
87 throw new UnsatisfiedLinkError(e.getMessage());
A simple library class which helps with loading dynamic libraries stored in the JAR archive.
static void loadLibraryFromJar(String path)
Loads library from current JAR archive.
This interface defines the basic structures to handle multiple streams of uniform (pseudo)random numb...