"algmoid" is a C++11 implementation (including native Python bindings) of algebraic sigmoidal functions of form:
s(x) := x*((x/lim)**n + 1)**(-1/n)
Feel free to enhance modify and make pull request at github to the algmoid repository.
See dependencies and make sure that manual dependencies are satisfied.
- Example using pip (modify to your own needs):
pip install --user --upgrade -r https://raw.github.com/bjodah/algmoid/v0.0.1/requirements.txt
pip install --user --upgrade https://github.com/bjodah/algmoid/archive/v0.0.1.tar.gz
- Manual installation:
- Clone repository
git clone https://github.com/bjodah/algmoid.git
- Install dependencies
cd algmoid; pip install --user --upgrade -r requirements.txt
- To install run
python setup.py install --user
orsudo python setup.py install
.
- Clone repository
See distutils documentation for more options.
Note that the behaviour of setup(...)
is modified slightly through the use of "CleverExtension" from pycompilation.
To run the full test suite, you need to build the python
bindings. (see Dependencies)
1. python setup.py build_ext --inplace
2. py.test
You need a C++ compiler supporting C++11 (-std=c++0x)
On a debian based linux system you can install it easily
by typing: sudo apt-get install g++
Optional dependencies (for Python bindings):
- Python header files (sudo apt-get install python-dev)
- Python (tested with 2.7)
- NumPy
- Cython
- pycompilation (optional: enables use from python)
- pytest (sudo apt-get install python-pytest)
See requirements.txt for detailed information of versions tested for.
For all dependencies the following command may be issued on a debian
based system:
sudo apt-get install g++ python2.7 libpython2.7-dev
python-numpy cython python-pip python-pytest; sudo
pip install --upgrade -r https://raw.github.com/bjodah/algmoid/v0.0.1/requirements.txt
Open Source. Released under the very permissive "simplified (2-clause) BSD license". See LICENSE.txt for further details.
Björn Dahlgren.
Write proper documentation.