Skip to main content

Package to generate and analyse orthogonal arrays, conference designs and optimal designs

Project description

Orthogonal Array Package

The Orthogonal Array package contains functionality to generate and analyse orthogonal arrays, optimal designs and conference designs. Features include generation of complete series of orthogonal arrays, reduction of arrays to normal form and calculation of properties such as the strength or D-efficiency of an array. For more information about the package see the documentation at oapackage.readthedocs.io. A large collection of results generated with the package can be found at http://pietereendebak.nl/oapackage/.

Usage

The package can be used from Python:

>>> import oapackage
>>> al=oapackage.exampleArray(0)
>>> al.showarraycompact()
00
00
01
01
10
10
11
11
>>> print('D-efficiency %f, rank %d' % (al.Defficiency(), al.rank()) )
D-efficiency 1.000000, rank 2
>>> print('Generalized wordlength pattern: %s' % str(al.GWLP()))
Generalized wordlength pattern: (1.0, 0.0, 0.0)

For more examples see the Jupyter notebooks in the docs/examples.

Acknowledgements

If you use this code or any of the results, please cite this program as follows:

The code was written by:

Ideas contributed by:

See the file LICENSE for copyright details.

Installation

PyPI version Build status Build Status Documentation Status

The Python interface to the package is available on the Python Package index. Installation can be done using the following command:

$ pip install OApackage

(or pip install OApackage --user if you do not have admin rights). To compile the package you need Python, Numpy and Swig 3.x.

The command line tools have been tested using Linux, Windows Win7/Win10 and Raspberry Pi. The program uses a cmake build system. From the command line type:

$ mkdir -p build; cd build
$ cmake ..
$ make
$ make install

Contributing, unit testing and support

See the file CONTRIBUTING.md on GitHub.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

OApackage-2.7.13.tar.gz (1.2 MB view hashes)

Uploaded Source

Built Distributions

OApackage-2.7.13-cp312-cp312-win_amd64.whl (1.4 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

OApackage-2.7.13-cp311-cp311-win_amd64.whl (1.4 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

OApackage-2.7.13-cp310-cp310-win_amd64.whl (1.5 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

OApackage-2.7.13-cp39-cp39-win_amd64.whl (1.5 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

OApackage-2.7.13-cp38-cp38-win_amd64.whl (1.5 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page