Package samer.functions
Class BiLaplacianBlend
- java.lang.Object
-
- samer.maths.Function
-
- samer.functions.BiLaplacianBlend
-
public class BiLaplacianBlend extends Function
Log prior for an laplacian distribution with an extra mass at zero, eg a mixture of a laplacian with another much narrower laplacian. The log prior is basically an abs function with with a extra-deep pit at zero. Paramters control the width and depth of the pit. Two linear phases blended exponentially.
-
-
Constructor Summary
Constructors Constructor and Description BiLaplacianBlend()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleapply(double t)Functionderivative()java.lang.Stringformat(java.lang.String t)doublegetJump()voidsetExponent(double b)voidsetStrength(double a)
-
-
-
Method Detail
-
setExponent
public void setExponent(double b)
-
setStrength
public void setStrength(double a)
-
getJump
public double getJump()
-
derivative
public Function derivative()
- Overrides:
derivativein classFunction
-
-