Skip to content

ankane/dist-zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dist Zig

PDF, CDF, and percent-point/quantile functions for the normal and Student’s t distributions

Build Status

Installation

Run:

zig fetch --save git+https://github.com/ankane/dist-zig#v0.1.0

And update build.zig:

exe.root_module.addImport("dist", b.dependency("dist", .{}).module("dist"));

Getting Started

Normal

const dist = @import("dist");

const pdf = dist.normal.pdf(x, mean, std_dev);
const cdf = dist.normal.cdf(x, mean, std_dev);
const ppf = dist.normal.ppf(p, mean, std_dev);

Student’s t

const dist = @import("dist");

const pdf = dist.t.pdf(x, df);
const cdf = dist.t.cdf(x, df);
const ppf = dist.t.ppf(p, df);

References

History

View the changelog

Contributing

Everyone is encouraged to help improve this project. Here are a few ways you can help:

To get started with development:

git clone https://github.com/ankane/dist-zig.git
cd dist-zig
zig build test --summary new

About

PDF, CDF, and percent-point/quantile functions for the normal and Student’s t distributions

Resources

License

Unlicense, MIT licenses found

Licenses found

Unlicense
UNLICENSE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

 
 
 

Languages