plCndBellShape
represents a collection of
plBellShape
kernels with variable mean
plCndBellShape
on
Our example requires of two variables and
that are created
with the following code:
plIntegerType Tx(-300,300); plRealType Std_Type(0,300); plSymbol X("x",Tx); plSymbol Std("std",Std_Type);
then the plCndBellShape
kernel is created as follows:
plCndBellShape my_cnd_kernel(X,0.0,Std);
One output example of the program example is the following:
The conditional kernel is: P(x | std) = plCndBellShape(x, 0 std) Give me the standard deviation: 80 The new kernel is: P(x) = plBellShape(x,0,80) Give me the value of X: 189 Compute with the new kernel 0.000306141 Compute with the conditional kernel: 0.000306141