Skip to content

Jim-215-Fisher/statislib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Statislib

A Fortran library for statistical distributions. The library includes various distributions' random number generators, probability density function or probability mass function, and cumulative distribution function. Detail usages for each distribution are shown in corresponding documents.

Getting started

Requirements

Get code

git clone https://github.com/Jim-215-Fisher/statislib.git
cd statislib

Build with CMake

cmake -B build
cmake --build build

Your compiled statislib will be in statislib/build/src as libstatislib.a, and you can copy the library to the selected place. To test, run each test file under tests/ directory.

Usage

In your program, access the library through use statement. You can use local name as short hand for library procedures or functions as follows:

program test
    use statislib, only : uni => uniform_distribution_rvs
    ...

Documentation

Detail usages are listed in files for each distribution in doc/

TODO

More distributions and functions will be implementated gradually.

Releases

No releases published

Languages