# SSJ
*Stochastic Simulation in Java*
SSJ is a Java library for stochastic simulation, developed under the supervision of
[Pierre L'Ecuyer](http://www-labs.iro.umontreal.ca/~lecuyer/)
in the
[Simulation and Optimization Laboratory](http://simul.iro.umontreal.ca/),
[Department of Computer Science and Operations
Research](http://en.diro.umontreal.ca) at Université de Montréal.
It provides facilities for:
- random number and random variate generation
- stochastic process simulation
- discrete-event simulation
- computations with several types of probability distributions
- randomized quasi-Monte Carlo methods
- collecting and reporting statistics from simulations
- goodness-of-fit tests
- and much more.
Starting from version 3.1.0, SSJ is released under the
[Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0),
and the package names have changed from `umontreal.iro.lecuyer.*` to `umontreal.ssj.*`.
## Documentation and tutorial
The [SSJ User's Guide](http://umontreal-simul.github.io/ssj/docs/master)
includes:
- the [API documentation](http://umontreal-simul.github.io/ssj/docs/master/namespaces.html); and
- [a tutorial with documented examples](http://umontreal-simul.github.io/ssj/docs/master/examples.html).
## Installation
You can install SSJ either by [adding it as a dependency](#using-maven)
for your Maven- or Gradle-based project, by downloading a [binary
release](#binary-releases) or by [compiling it from
scratch](#compiling-the-source-code).
SSJ is compatible with Java SE8 and later versions of Java.
It requires the Java Development Kit (JDK), whose latest version is available at
[Oracle](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
with installation instructions. It must be installed *before* installing SSJ.
It is also useful to install an integrated development environments (IDE) such as
[Eclipse](http://www.eclipse.org/),
[NetBeans](http://netbeans.org/),
[IntelliJ IDEA](http://www.jetbrains.com/idea/), for example,
to write, compile, and run your Java code.
### Using Maven
**(Simplest approach)**
SSJ packages are hosted
[on Bintray](https://bintray.com/umontreal-simul/maven/ssj/_latestVersion)
and on
[Maven Central](https://repo1.maven.org/maven2/ca/umontreal/iro/simul/ssj/).
If your Java project uses [Maven](http://maven.apache.org/) or
[Gradle](http://gradle.org/), **all you need to do is add
`ca.umontreal.iro.simul:ssj:+` to the Maven dependencies of your project**,
then you can start working on your SSJ-based project right-away.
##### IDE integration
Most IDEs support Maven. In Eclipse, NetBeans, or IntelliJ IDEA, for example, it suffices to create
your project as a *Maven project* instead of a Java project.
After creating your project, add SSJ to its Maven dependencies
(refer to your IDE documentation), with the following parameters:
- **Group Id**: `ca.umontreal.iro.simul`;
- **Artifact Id**: `ssj`;
- **Version**: any [valid release number for SSJ](http://github.com/umontreal-simul/ssj/releases),
e.g., `3.3.1`,
and you are ready to go!
### Binary releases
For those who want to download the binaries and install them manually,
we provide below some general instructions for configuring a project to use SSJ.
Less experienced users can find
[more detailed instructions on the SSJ page](http://simul.iro.umontreal.ca/ssj/indexe.html).
#### Download a binary archive
Pre-compiled binaries are available as archives on the
[releases page](http://github.com/umontreal-simul/ssj/releases).
They include:
- the main SSJ [JAR file](http://en.wikipedia.org/wiki/JAR_%28file_format%29)
(under `ssj/lib`);
- JAR files for the Java libraries used by SSJ (the dependencies)
(under `ssj/lib`);
- dependencies and the [JNI](http://en.wikipedia.org/wiki/Java_Native_Interface)
shared libraries (under the `ssj/lib` directory);
- the user's guide (under `ssj/doc/html`); and
- example source files (under `ssj/doc/examples`).
You can download the latest archive and extract the files in a location of your choice.
#### Set the Java class path
You add to the Java class path every JAR file found under the `ssj/lib`
directory of the binary archive.
##### On the command line
If you use Java from the command line, add the full path of every JAR file
under `ssj/lib` to the `CLASSPATH` environment variable, separated with `:`
under Linux or MacOS, or by `;` under Windows.
Means of doing this depends on the system you are using.
For example, under Linux with a Bash-compatible shell, one could use something
like:
```sh
for f in /full/path/to/ssj/lib/*.jar; do
CLASSPATH=$f:$CLASSPATH
done
export CLASSPATH
```
##### In Eclipse
In Eclipse, under *Window ‣ Preferences ‣ Java ‣ Build Path ‣ User Libraries*,
click *New…*. Set the name to `SSJ` and click *OK*. Click *Add External
JARs…* navigate to the `ssj/lib` folder of the extracted binary archive, select
all JAR files, and click *OK*. You can now add the SSJ library you have
created from any project, by right-clicking on your project name in the
*Package Explorer*, by selecting *Build Path ‣ Add Libraries… ‣ User Library*
under your project tree and by choosing SSJ.
##### In NetBeans
In NetBeans, under *Tools ‣ Libraries*, press *New Library…*. Set the name to
`SSJ` and click *OK*. Click *Add JAR/Folder…*, navigate to the `ssj/lib`
folder of the extracted binary archive, select all JAR files, and click *Add
JAR/Folder*. You can now add the SSJ library you have created from any
project, by right-clicking on *Libraries* under your project tree in the
*Projects* tab and by choosing SSJ.
## Compiling the source code
**You do not need to compile the source code to use SSJ if you have already installed it
[using Maven](#using-maven) or a [binary release](#binary-releases).**
But in case you want to change the source for some reason, here is how you can recompile.
The SSJ library uses [Gradle](http://gradle.org/) as its build system.
You do not need to download it, since the Gradle wrapper executable program is
provided with the source code as the `gradlew` file for Linux and MacOS
platforms, and as `gradlew.bat` for Windows platforms.
The `build.gradle` and `gradle.properties` files at the root of the source tree
contain the configuration for Gradle.
In the instructions below, **Windows users** should replace instances of
`./gradlew` with `gradlew.bat`.
SSJ and the current Gradle version work with Java SE (or JDK) version 8 or later.
### Using Gradle
The general syntax for Gradle is `./gradlew <task>` where `<task>` is the name
of a Gradle task (run `./gradlew tasks` to obtain a list of available tasks).
On the command line, from the root of the source tree, type:
- `./gradlew check` to build and test the library;
- `./gradlew examples` (optionally) to run additional examples;
- `./gradlew distZip` or `./gradlew distTar` to create an binary archive of the
SSJ library, including the SSJ JAR file and its dependencies;
- `./gradlew --gui` to launch the Gradle graphical user interface and choose
from more options.
All files generated during the build process are placed under the `build`
subdirectory.
The generated binary archives can be found under `build/distributions`.
### Building the documentation
**(Optional)**
The SSJ library uses [Doxygen](http://www.stack.nl/~dimitri/doxygen/) as its
documentation system.
If Doxygen is available on your system, you can tell Gradle to build the
documentation by adding the following line in `gradle.properties`:
buildDocs
Then, run Gradle [as explained above](#using-gradle).
You may want (or need) to change some Doxygen environments variables in the file Doxyfile.
### JNI classes
**(Optional)**
The classes
[UnuranContinuous](http://umontreal-simul.github.io/ssj/docs/master/html/classumontreal_1_1ssj_1_1randvar_1_1UnuranContinuous.html),
[UnuranDiscreteInt](http://umontreal-simul.github.io/ssj/docs/master/html/classumontreal_1_1ssj_1_1randvar_1_1UnuranDis
没有合适的资源?快使用搜索试试~ 我知道了~
Java中的随机模拟___下载.zip
共711个文件
java:590个
dox:31个
txt:19个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 90 浏览量
2023-04-16
19:44:03
上传
评论
收藏 2.25MB ZIP 举报
温馨提示
Java中的随机模拟___下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
Java中的随机模拟___下载.zip (711个子文件)
Doxyfile.bak 105KB
gradlew.bat 3KB
random.bib 300KB
vrt.bib 222KB
optim.bib 126KB
stat.bib 121KB
simul.bib 108KB
callc.bib 107KB
math.bib 63KB
ssj.bib 62KB
prob.bib 58KB
ift.bib 56KB
fin.bib 53KB
rail.bib 4KB
RandUnuran.c 24KB
Chrono.c 2KB
ssj.css 1KB
NiedXingSequenceBase2Trans.dat 187KB
NiedSequenceBase2.dat 104KB
CallCenter.dat 989B
j2_k17.dat 669B
j2_k19.dat 603B
j1_k11.dat 445B
san13a.dat 376B
san13a.dat 376B
CallCenter.dat 312B
CallEv.dat 307B
overview.dox 77KB
tutorial.dox 70KB
overview.dox 39KB
overview.dox 14KB
overview.dox 8KB
overview.dox 7KB
overview.dox 7KB
overview.dox 6KB
overview.dox 6KB
overview.dox 6KB
overview.dox 5KB
overview.dox 4KB
overview.dox 4KB
overview.dox 4KB
overview.dox 3KB
overview.dox 3KB
overview.dox 2KB
overview.dox 2KB
overview.dox 2KB
overview.dox 2KB
overview.dox 2KB
overview.dox 2KB
overview.dox 1KB
overview.dox 611B
overview.dox 487B
overview.dox 446B
overview.dox 381B
overview.dox 348B
overview.dox 263B
overview.dox 243B
overview.dox 216B
Doxyfile 105KB
.gitignore 111B
.gitignore 6B
build.gradle 6KB
gradlew 8KB
gradle-wrapper.jar 58KB
BatchMeansSim.java 53KB
NormalDistQuick.java 48KB
GofStat.java 45KB
DigitalNet.java 44KB
SobolSequence.java 40KB
PrintfFormat.java 40KB
GofFormat.java 39KB
Num.java 38KB
Rijndael_Algorithm.java 34KB
XYListSeriesCollection.java 33KB
DMatrix.java 33KB
DigitalNetBase2.java 30KB
BetaDist.java 29KB
InverseDistFromDensity.java 29KB
TextDataReader.java 29KB
BetaSymmetricalDist.java 28KB
ListOfTalliesWithCV.java 28KB
JDBCManager.java 28KB
NegativeBinomialDist.java 27KB
PointSet.java 27KB
ArrayOfComparableChains.java 25KB
BinomialDist.java 25KB
DigitalNetFromFile.java 24KB
HistogramSeriesCollection.java 23KB
Tally.java 23KB
ChiSquareNoncentralDist.java 23KB
DensityEstimator.java 23KB
FunctionOfMultipleMeansTally.java 22KB
F2wStructure.java 22KB
RadicalInverse.java 22KB
CustomHistogramDataset.java 22KB
SplayTree.java 21KB
RandMrg.java 20KB
DEHistogram.java 20KB
BinaryTree.java 20KB
XYLineChart.java 20KB
共 711 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功