https://github.com/tpapp/highestdensityregions.jl
Julia library for calculating Highest Density Regions
https://github.com/tpapp/highestdensityregions.jl
Last synced: 4 months ago
JSON representation
Julia library for calculating Highest Density Regions
- Host: GitHub
- URL: https://github.com/tpapp/highestdensityregions.jl
- Owner: tpapp
- License: other
- Created: 2018-01-09T16:52:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-07-26T09:16:43.000Z (almost 4 years ago)
- Last Synced: 2025-02-28T16:20:11.357Z (over 1 year ago)
- Language: Julia
- Size: 63.5 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# HighestDensityRegions

[](https://travis-ci.org/tpapp/HighestDensityRegions.jl)
[](https://coveralls.io/github/tpapp/HighestDensityRegions.jl?branch=master)
[](http://codecov.io/github/tpapp/HighestDensityRegions.jl?branch=master)
Julia library for calculating Highest Density Regions.
## Installation
```julia
pkg> add HighestDensityRegions
```
## Usage
The single exported function is `hdr_thresholds`, which returns a vector thresholds for the given probabilities.
## Examples
### 1D HPD coloring
[This example code](examples/1d-density.jl) was used to produce

### 2D HPD regions
[This example code](examples/2d-density.jl) was used to produce

## Bibliography
- Hyndman, R. J. (1996). Computing and graphing highest density regions. The American Statistician, 50(2), 120–126.