Exemple #1
0
 def log_cdf(self) -> ContinuousFunctionNd:
     """
     Log of the cumulative distribution function of the given RV.
     """
     return ContinuousFunctionNd(distribution=self._distribution,
                                 method_name='logcdf',
                                 name='log(CDF)',
                                 num_dims=self._num_dims,
                                 parent=self)
Exemple #2
0
 def log_pdf(self) -> ContinuousFunctionNd:
     """
     Log of the probability mass function of the given RV.
     """
     return ContinuousFunctionNd(distribution=self._distribution,
                                 method_name='logpdf',
                                 name='log(PDF)',
                                 num_dims=self._num_dims,
                                 parent=self)
Exemple #3
0
 def cdf(self) -> ContinuousFunctionNd:
     """
     Cumulative distribution function of the given RV.
     """
     return ContinuousFunctionNd(distribution=self._distribution,
                                 method_name='cdf',
                                 name='CDF',
                                 num_dims=self._num_dims,
                                 parent=self)
Exemple #4
0
 def pdf(self) -> ContinuousFunctionNd:
     """
     Probability mass function of the given RV.
     """
     return ContinuousFunctionNd(distribution=self._distribution,
                                 method_name='pdf',
                                 name='PDF',
                                 num_dims=self._num_dims,
                                 parent=self)