B
    ɒ\-                 @   s4   d dl Z ddlmZ ddlmZ G dd deZdS )    N   )Distribution   )utilc                   s4   e Zd Z fddZdd Zdd Zdd Z  ZS )	Normalc                s4   t |}t |}t jddtj||d d S )Nr   )nameaddress_suffix
torch_dist)r   	to_tensorsuper__init__torchdistributionsr   )selflocscale)	__class__ _/global/project/projectdirs/dasrepo/etalumis/pyprob_master_mar20/pyprob/distributions/normal.pyr      s    

zNormal.__init__c             C   s   d | j| jS )NzNormal(mean:{}, stddev:{}))formatmeanstddev)r   r   r   r   __repr__   s    zNormal.__repr__c             C   s   | j |S )N)_torch_distcdf)r   valuer   r   r   r      s    z
Normal.cdfc             C   s   | j |S )N)r   icdf)r   r   r   r   r   r      s    zNormal.icdf)__name__
__module____qualname__r   r   r   r   __classcell__r   r   )r   r   r      s   r   )r    r   r   r   r   r   r   r   <module>   s   