Param function

Construct a parameter with a prior, weight and an update flag.