Coder Social home page Coder Social logo

atmosphere's Introduction

Dub

Atmosphere contains Maximum Likelihood Estimation algorithms, density functions, random observations generators, etc.

Travis-CI Status

Join the chat at https://gitter.im/9il/atmosphere Coverage Status

#Features

  1. Normal variance-mean mixtures
  • Generalized hyperbolic distribution
  • Generalized variance-gamma distribution
  1. Separating mixtures of probability distributions
  • Grid methods
  • Likelihood maximization
  • Optimization over sliding window
  1. Generalized probability distributions
  • Density functions
  • Cumulative functions
  • Quantiles
  • Random observations generators
  • Maximum Likelihood Estimations (MLE)

Generalized hyperbolic distribution

Generalized variance-gamma distribution

What can I use this package for?

Atmosphere can be used for risk management in economics, finance and thermonuclear reactors ;-)

#Documentation Documentation (API) can be found here.

#Installation

BLAS & LAPACK

You need BLAS and LAPACK libraries to be installed.

If you're on Ubuntu, you can install default packages

sudo apt-get update
sudo apt-get install libblas-dev liblapack-dev 

OS X comes with the Accelerate framework built in.

There is no instruction for Windows. You are welcome to create it.

Intro to D

  1. Install D compiler.
  2. Install DUB registry
  3. Read about DUB
  4. Read about DUB package format

Atmosphere

To use this package put the dependency into your project's dub.json into the dependencies section and the following imports into your program

import atmosphere;

If you want to write a library use detailed imports

import atmosphere.pdf;
import atmosphere.estimate.generalized_inverse_gaussian;
import atmosphere.finitemixture;
import atmosphere.mixture : MixtureOptimizer, MixtureOptimizerException;

Compilers and optimization

The DMD compiler is an easy way to start. To compile your program in release mode use the following build options

dub build --build=release

LDC

It is suggested the LLVM D Compiler be used for benchmarks. To compile your program in release mode with LDC use the following build options

dub build --build=release --compiler=ldc2

To fine-tune your program for native CPU add the following code into your dub.json:

{
	...
	"dflags-ldc": ["-mcpu=native"],
}

For more options run ldc2 -help.

See also Atmosphere GM Test.

TODO & Contribution

Contribution is welcome.

TODO list

  • Windows instruction for BLAS & LAPACK installation.
  • MLEs for generalized gamma distribution.
  • Publication references
  • More unittests
  • Examples
  • ReadTheDocs documentation.

atmosphere's People

Contributors

9il avatar gitter-badger avatar brad-anderson avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.