convolution is wrong, you forgot to flip the kernel?
unit: Bayesian Filter
@albertoezquerro kindly review this.