ambhas
+++++++

.. contents ::

Installing ambhas
======================

Installing ambhas can be done by downloading source file (ambhas--<version>.tar.gz),
and after unpacking issuing the command::

    python setup.py install

This requires the usual Distutils options available.

Or, download the ambhas--<version>.tar.gz file and issue the command::
    
   pip install /path/to/ambhas--<version>.tar.gz

Or, directly using the pip::

   pip install ambhas   

Usage
=========
Import required modules::

    import numpy as np
    from ambhas.errlib import rmse, correlation

Generate some random numbers::

    x = np.random.normal(size=100)
    y = np.random.normal(size=100)
    rmse(x,y)
    correlation(x,y)

For using the copula, import copula::

    import numpy as np
    from ambhas.copula import Copula

Generate some random numbers::

    x = np.random.normal(size=100)
    y = np.random.normal(size=100)

Generate an instance of class copula::

    foo = Copula(x, y, 'frank')

Now, generate some ensemble using this instance::

    u,v = foo.generate(100)


Author
======

`Sat Kumar Tomer <http://ambhas.com/>`_ satkumartomer at gmail dot com
