/// <summary>
 /// Creates a list of Betas of the specified size, each set to have the specified true and false counts.
 /// </summary>
 /// <param name="size">The size of the list</param>
 /// <param name="trueCount">The true count for each Beta distribution</param>
 /// <param name="falseCount">The false count for each Beta distribution</param>
 public SparseBetaList(int size, double trueCount, double falseCount)
 {
     TrueCounts  = ApproximateSparseVector.Constant(size, trueCount, DefaultSparsity);
     FalseCounts = ApproximateSparseVector.Constant(size, falseCount, DefaultSparsity);
 }
 /// <summary>
 /// Creates a list of Bernoullis of the specified size, each set to have the specified probability of being true.
 /// </summary>
 /// <param name="size">The size of the list</param>
 /// <param name="probTrue">The probability of each Bernoulli being true</param>
 public SparseBernoulliList(int size, double probTrue)
 {
     LogOddsVector = ApproximateSparseVector.Constant(size, MMath.Logit(probTrue), DefaultSparsity);
 }