ensemble_hic/npsamplers.py
def sample(self, state=42):
        """
        Draws a sample from the Gamma distribution specified
        by a rate and a scale parameter

        :returns: a sample
        :rtype: float
        """
        rate = self._calculate_rate()        
        shape = self._calculate_shape()
        sample = np.random.gamma(shape) / rate
        
        if sample == 0.0:
            sample += 1e-10

        self.state = sample
        
        return self.state

        Draws a sample from the Gamma distribution specified
        by a rate and a scale parameter

        :returns: a sample
        :rtype: float
        
Draws a sample from the Gamma distribution specified
by a rate and a scale parameter
Draws a sample from the Gamma distribution specified by a rate and a scale parameter
def sample(self, state=42):
        rate = self._calculate_rate()        
        shape = self._calculate_shape()
        sample = np.random.gamma(shape) / rate
        if sample == 0.0:
            sample += 1e-10
        self.state = sample
        return self.state
def sample ( self , state = 42 ) : rate = self . _calculate_rate ( ) shape = self . _calculate_shape ( ) sample = np . random . gamma ( shape ) / rate if sample == 0.0 : sample += 1e-10 self . state = sample return self . state
Draws a sample from the Gamma distribution specified
by a rate and a scale parameter
Draws a sample from the Gamma distribution specified by a rate and a scale parameter
"""
        Draws a sample from the Gamma distribution specified
        by a rate and a scale parameter

        :returns: a sample
        :rtype: float
        """
None
float
self
state