added a str representation for the pdf class

This commit is contained in:
Sebastian Wehling-Benatelli 2016-03-09 06:22:26 +01:00
parent f3467221cc
commit a5fe838514

View File

@ -153,6 +153,9 @@ class ProbabilityDensityFunction(object):
def __nonzero__(self):
return bool(np.round(self.prob_gt_val(self.axis[0]), 4) == 1.)
def __str__(self):
return str(self.data)
@property
def data(self):
return self._pdf