morphoorg / morpho

A python interface with Stan/PyStan Markov Chain Monte Carlo package
Other
4 stars 4 forks source link

Smooth-edge flat prior #25

Closed guiguem closed 7 years ago

guiguem commented 7 years ago

A true Heaviside function as prior is not very nice with Stan, because of the discontinuities. We need to define a new prior function which provides continuous edges (L2 might be enough) and implement it in the functions folder in scripts.

jformaggio commented 7 years ago

What about using a butterworth? It is smooth and somewhat reminiscent of the bandpass filter physically there.

guiguem commented 7 years ago

That might be enough. What would be the order of the butterworth?

guiguem commented 7 years ago

A butterworth filter method has been added to the private functions directory: its amplitude is set to one and has two edges.