> next up previous contents index
: plCndProbTable : Discrete conditional built-in kernels : Discrete conditional built-in kernels   目次   索引

plCndBellShape

Definition 18   Given $\Omega=\{X_1,X_2,...,X_n\}$ and one or two of the variables $\mu$ and $\sigma$ a plCndBellShape represents a collection of plBellShape kernels with variable mean $\mu$ and/or variable variance $\sigma$.

Example 12   Here we define a plCndBellShape on $\Omega=\{x\}$, with $x \in [-300,300]$, mean $0.0$ and variable standard deviation $std \in [0,300]$.

Our example requires of two variables $x$ and $std$ 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



Juan-Manuel Ahuactzin 平成17年3月31日