Esempio n. 1
0
 public Metropolis(Func<List<double>, double> probability, ParameterRoot parameters, RandomNumberGenerator rng)
 {
     this.probability = probability;
     this.parameters = parameters;
     this.rng = rng; 
 }
Esempio n. 2
0
 public Parameter(double value, double variance, RandomNumberGenerator rng = null)
 {
     this.value = value;
     this.variance = variance;
     this.rng = rng ?? new RandomNumberGenerator(); 
 }