Bugfix in from_pick: type must be exp to be consistent!
This commit is contained in:
parent
919f4dd2d6
commit
6ff8069fe0
@ -240,7 +240,7 @@ class ProbabilityDensityFunction(object):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_pick(self, lbound, barycentre, rbound, incr=0.001, decfact=0.01,
|
def from_pick(self, lbound, barycentre, rbound, incr=0.001, decfact=0.01,
|
||||||
type='gauss'):
|
type='exp'):
|
||||||
'''
|
'''
|
||||||
Initialize a new ProbabilityDensityFunction object.
|
Initialize a new ProbabilityDensityFunction object.
|
||||||
Takes incr, lbound, barycentre and rbound to derive x0 and the number
|
Takes incr, lbound, barycentre and rbound to derive x0 and the number
|
||||||
@ -286,7 +286,7 @@ class ProbabilityDensityFunction(object):
|
|||||||
pdf = branches[type]
|
pdf = branches[type]
|
||||||
|
|
||||||
# return the object
|
# return the object
|
||||||
return ProbabilityDensityFunction(x0, incr, npts, pdf, barycentre,
|
return ProbabilityDensityFunction(x0, incr, npts, pdf,
|
||||||
params, decfact)
|
params, decfact)
|
||||||
|
|
||||||
def broadcast(self, pdf, si, ei, data):
|
def broadcast(self, pdf, si, ei, data):
|
||||||
|
Loading…
Reference in New Issue
Block a user