diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index aaffb1f..8f421b9 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -19,4 +19,4 @@ jobs:
java-version: 1.11
- name: Build with Maven
- run: mvn -B package
+ run: mvn -B package -Pcoverage
diff --git a/README.md b/README.md
index 038588a..1de088b 100644
--- a/README.md
+++ b/README.md
@@ -6,6 +6,10 @@ Copyright (C) 2015, 2017-2020 Vincent A. Cicirello.
https://www.cicirello.org/
+| __Packages and Releases__ | [![Maven Central](https://img.shields.io/maven-central/v/org.cicirello/ziggurat.svg?label=Maven%20Central)](https://search.maven.org/artifact/org.cicirello/ziggurat) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/cicirello/ZigguratGaussian?logo=GitHub)](https://github.com/cicirello/ZigguratGaussian/releases) |
+| :--- | :--- |
+| __Source and Build Info__ | [![build](https://github.com/cicirello/ZigguratGaussian/workflows/build/badge.svg)](https://github.com/cicirello/ZigguratGaussian/actions?query=workflow%3Abuild) [![GitHub](https://img.shields.io/github/license/cicirello/ZigguratGaussian)](https://github.com/cicirello/ZigguratGaussian/blob/master/LICENSE) |
+
## Overview
This repository contains a Java implementation of the Ziggurat
@@ -45,6 +49,42 @@ additional experimental data:
If you want to build from the source, then execute `mvn package` at the root
of the repository.
+## Importing the Library from Maven Central
+
+Add this to the dependencies section of your pom.xml, replacing
+the version number with the version that you want to use.
+
+```XML
+
+ org.cicirello
+ ziggurat
+ 1.0.0
+
+```
+
+## Importing the Library from GitHub Packages
+
+If you'd prefer to import from GitHub Packages, rather than
+Maven Central: (1) add the dependency as indicated in
+previous section above, and (2) add
+the following to the repositories section of your pom.xml:
+
+```XML
+
+ github
+ GitHub cicirello Apache Maven Packages
+ https://maven.pkg.github.com/cicirello/ZigguratGaussian
+ true
+ true
+
+```
+
+## Downloading Jar Files
+
+If you don't use a dependency manager that supports importing from Maven Central,
+or if you simply prefer to download manually, prebuilt jars are also attached to
+each [GitHub Release](https://github.com/cicirello/ZigguratGaussian/releases).
+
## License
The example programs in this repository are licensed under
diff --git a/pom.xml b/pom.xml
index c8a91d2..661c0a1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -129,6 +129,32 @@
+
+ coverage
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.6
+
+
+
+ prepare-agent
+
+
+
+ generate-code-coverage-report
+ test
+
+ report
+
+
+
+
+
+
+
diff --git a/src/test/java/org/cicirello/math/rand/ZigguratGaussianTests.java b/src/test/java/org/cicirello/math/rand/ZigguratGaussianTests.java
index 85f572f..fe2ee30 100644
--- a/src/test/java/org/cicirello/math/rand/ZigguratGaussianTests.java
+++ b/src/test/java/org/cicirello/math/rand/ZigguratGaussianTests.java
@@ -35,7 +35,7 @@ public class ZigguratGaussianTests {
// Test cases use chi square goodness of fit. This constant
// can be used to adjust the number of samples used for this test.
- private static final int EXPECTED_SAMPLES_PER_BUCKET = 30;
+ private static final int EXPECTED_SAMPLES_PER_BUCKET = 60;
// Change to true to see extra statistical output not otherwise used
// by automated tests (e.g., to see the specific chi square statistic value).