added a str representation for the pdf class
This commit is contained in:
parent
f3467221cc
commit
a5fe838514
@ -153,6 +153,9 @@ class ProbabilityDensityFunction(object):
|
|||||||
def __nonzero__(self):
|
def __nonzero__(self):
|
||||||
return bool(np.round(self.prob_gt_val(self.axis[0]), 4) == 1.)
|
return bool(np.round(self.prob_gt_val(self.axis[0]), 4) == 1.)
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return str(self.data)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def data(self):
|
def data(self):
|
||||||
return self._pdf
|
return self._pdf
|
||||||
|
Loading…
Reference in New Issue
Block a user