|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.zcu.fav.kiv.jsim.JSimSystem
public class JSimSystem
The JSimSystem class provides various services, such as random-numbers generation, version functions, etc. All method are static sou you should never need to create an instance of this class.
Field Summary | |
---|---|
private static java.util.Locale |
localeInfo
Locale information about this version of J-Sim. |
private static int |
VERSION_MAJOR
Major version number of J-Sim. |
private static int |
VERSION_MINOR
Minor version number of J-Sim. |
private static int |
VERSION_PATCH
Patch version number of J-Sim. |
Constructor Summary | |
---|---|
JSimSystem()
|
Method Summary | |
---|---|
static boolean |
draw(double probability)
Returns true with a given probability. |
static double |
gauss(double mu,
double sigma)
Returns a random number having Gaussian (normal) distribution with parameters "mu" and "sigma". |
static java.lang.String |
getVersion()
Returns J-Sim version as string. |
static int |
getVersionMajor()
Returns the major version number. |
static int |
getVersionMinor()
Returns the minor version number. |
static int |
getVersionPatch()
Returns the patch version number. |
static void |
hello()
Prints out information about J-Sim. |
static double |
negExp(double lambda)
Returns a random number having exponential distribution with parameter "lambda". |
static double |
uniform(double a,
double b)
Returns a random number having uniform distribution with parameters "a" and "b". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int VERSION_MAJOR
private static final int VERSION_MINOR
private static final int VERSION_PATCH
private static final java.util.Locale localeInfo
Constructor Detail |
---|
public JSimSystem()
Method Detail |
---|
public static int getVersionMajor()
public static int getVersionMinor()
public static int getVersionPatch()
public static java.lang.String getVersion()
public static void hello()
public static double negExp(double lambda)
lambda
- Parameter "lambda" of the exponential-distribution generator.
public static double uniform(double a, double b)
a
- The lower bound of the interval <a,b>.b
- The upper bound of the interval <a,b>.
public static boolean draw(double probability)
probability
- The probability that true will be returned.
public static double gauss(double mu, double sigma)
mu
- The parameter "mu" (mean value) of the normal-distribution generator.sigma
- The parameter "sigma" (variance) of the normal-distribution generator.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |