Skip to main content

Package to generate and analyse orthogonal arrays and optimal designs

Project description

Orthogonal Array Package
========================

(version 2.2)

The code allows to work with orthogonal arrays. 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 page <http://pietereendebak.nl/oapackage/>.

Usage
-------

The package can be used from Python:
``` python
>>> import oalib
>>> al=oalib.exampleArray(0)
>>> al.showarray()
array:
0 0
0 0
0 1
0 1
1 0
1 0
1 1
1 1
>>> 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)
```

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

Complete Enumeration of Pure-Level and Mixed-Level Orthogonal Arrays, P.T. Eendebak, E.D. Schoen, M.V.M. Nguyen, Volume 18, Issue 2, pages 123-140, 2010.

The code was written by:

* Pieter Eendebak <pieter.eendebak@gmail.com>
* Vincent Brouerius van Nidek

Ideas contributed by:

* Eric Schoen <eric.schoen@tno.nl>

See the file LICENSE for copyright details.

Installation
------------

[![Build status](https://ci.appveyor.com/api/projects/status/f6ia9br95soimf9u?svg=true)](https://ci.appveyor.com/project/eendebakpt/oapackage-4lws8)
[![Version](https://pypip.in/v/OApackage/badge.svg)](https://pypi.python.org/pypi/OApackage/)

The Python interface to the package is available on the [Python Package index](https://pypi.python.org/pypi/OApackage/).
Installation can be done using the following command::


> pip install OApackage --user

To compile the package you need Python, Numpy and Swig 3.x.

The binary tools have been tested using Linux, Windows XP/Win7 (using Cygwin and Visual Studio) and Raspberry Pi.
The program uses a cmake build system. From the commandline type::

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


Data format
-----------

Arrays are stored in plain files or binary files. For text files the first line contains the number of columns, the number of rows and the number of arrays (or -1 if the number of arrays is not specified). Then for each array a single line with the index of the array, followed by N lines containing the array. The binary format is suitable for storing a very high numbers of arrays and supports random access. Also see the file `FORMAT.txt`.

To examine the result files one can use the oacat tool from the package, or the standard UNIX utilities cat, less, head and tail.

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.2.9.tar.gz (986.2 kB view hashes)

Uploaded Source

Built Distributions

OApackage-2.2.9.win-amd64-py3.5.exe (1.2 MB view hashes)

Uploaded Source

OApackage-2.2.9.win-amd64-py3.4.exe (1.3 MB view hashes)

Uploaded Source

OApackage-2.2.9.win-amd64-py2.7.exe (1.3 MB view hashes)

Uploaded Source

OApackage-2.2.9.win32-py3.5.exe (960.6 kB view hashes)

Uploaded Source

OApackage-2.2.9.win32-py3.4.exe (1.0 MB view hashes)

Uploaded Source

OApackage-2.2.9.win32-py2.7.exe (1.0 MB view hashes)

Uploaded Source

OApackage-2.2.9-cp35-cp35m-win_amd64.whl (1.0 MB view hashes)

Uploaded CPython 3.5m Windows x86-64

OApackage-2.2.9-cp35-cp35m-win32.whl (827.9 kB view hashes)

Uploaded CPython 3.5m Windows x86

OApackage-2.2.9-cp34-cp34m-win_amd64.whl (1.0 MB view hashes)

Uploaded CPython 3.4m Windows x86-64

OApackage-2.2.9-cp27-cp27m-win_amd64.whl (1.1 MB view hashes)

Uploaded CPython 2.7m Windows x86-64

OApackage-2.2.9-cp27-cp27m-win32.whl (808.7 kB view hashes)

Uploaded CPython 2.7m Windows x86

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