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 double
apply(double t)
Function
derivative()
java.lang.String
format(java.lang.String t)
double
getJump()
void
setExponent(double b)
void
setStrength(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:
derivative
in classFunction
-
-