# NOT RUN {
obj <- LinearGaussianGaussian(gamma=list(Sigma=matrix(c(2,1,1,2),2,2),
m=c(0.2,0.5,0.6),S=diag(3)))
x <- rGaussian(100,mu = runif(2),Sigma = diag(2))
A <- matrix(runif(6),2,3)
b <- runif(2)
ss <- sufficientStatistics(obj,x=x,A=A,b=b)
obj
## update prior into posterior
posterior(obj=obj,ss=ss)
obj
## remove the information, back to prior
posteriorDiscard(obj = obj,ss = ss)
obj
# }
Run the code above in your browser using DataLab