Skip to content
This repository was archived by the owner on Nov 17, 2026. It is now read-only.
DyalogPublic archive
forked from codeplea/incbeta

About

Archived: Incomplete Beta Function for Dyalog APL

Topics

Resources

Stars

2 stars

Watchers

5 watching

Forks

 
 

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Incomplete Beta Function

Warning

This repository was archived on 17 November 2027. It is read-only, and no longer maintained or supported.

This is CodePlea's implementation of the regularized incomplete beta function in C, modified to make it easy to call from Dyalog APL.

Building the shared library

Windows (32-bit)

$ cmake .
$ cmake --build . --config Release

Windows (64-bit)

Look at the generator that cmake . used above, and manually specify the Win64 variant. For example:

$ cmake . -G "Visual Studio 15 2017 Win64"
$ cmake --build . --config Release

Non-Windows

$ cmake . -DCMAKE_BUILD_TYPE=Release
$ cmake --build .

Using it from APL

      lib←'libincbeta.so' ⍝ varies according to platform
      ⎕NA lib,'|incbeta F8 F8 =F8[] P'                                
      A←1 ⋄ B←3 ⋄ 4⍕X←?10/0
 0.9403 0.9214 0.4226 0.2387 0.9489 0.3767 0.6916 0.8186 0.5756 0.2557
      4⍕incbeta A B X (≢X)
 0.9998 0.9995 0.8075 0.5588 0.9999 0.7578 0.9707 0.9940 0.9236 0.5876

About

Archived: Incomplete Beta Function for Dyalog APL

Topics

Resources

Stars

2 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages