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                   s<   e Zd Z fddZdd Zedd Zedd Z  ZS )	Uniformc                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lowhigh)	__class__ `/global/project/projectdirs/dasrepo/etalumis/pyprob_master_mar20/pyprob/distributions/uniform.pyr      s    

zUniform.__init__c             C   s   d | j| jS )NzUniform(lwo: {}, high: {}))formatr   r   )r   r   r   r   __repr__   s    zUniform.__repr__c             C   s   | j jS )N)_torch_distr   )r   r   r   r   r      s    zUniform.lowc             C   s   | j jS )N)r   r   )r   r   r   r   r      s    zUniform.high)	__name__
__module____qualname__r   r   propertyr   r   __classcell__r   r   )r   r   r      s   r   )r    r   r   r   r   r   r   r   <module>   s   