An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# HighestDensityRegions

![Lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)
[![Build Status](https://travis-ci.org/tpapp/HighestDensityRegions.jl.svg?branch=master)](https://travis-ci.org/tpapp/HighestDensityRegions.jl)
[![Coverage Status](https://coveralls.io/repos/tpapp/HighestDensityRegions.jl/badge.svg?branch=master&service=github)](https://coveralls.io/github/tpapp/HighestDensityRegions.jl?branch=master)
[![codecov.io](http://codecov.io/github/tpapp/HighestDensityRegions.jl/coverage.svg?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

![examples/1d-density.svg](examples/1d-density.svg)

### 2D HPD regions

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

![examples/2d-density.svg](examples/2d-density.svg)

## Bibliography

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