Exemplo n.º 1
0
 /// <summary>
 /// Returns a new instance of the <see cref="BernoulliIntegerSubset"/> class of a given size
 /// from a sparse list of log odds
 /// </summary>
 /// <param name="logOdds">The sparse list of log odds.</param>
 /// <returns>The new <see cref="BernoulliIntegerSubset"/> instance.</returns>
 public static BernoulliIntegerSubset FromLogOdds(
     ISparseList <double> logOdds)
 {
     return(BernoulliIntegerSubset.FromLogOdds(logOdds, SparseBernoulliList.DefaultTolerance));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns a new instance of the <see cref="BernoulliIntegerSubset"/> class of a given size
 /// with each element having a given log odds.
 /// </summary>
 /// <param name="size">The size of the list.</param>
 /// <param name="logOdds">The desired log odds.</param>
 /// <returns>The new <see cref="BernoulliIntegerSubset"/> instance.</returns>
 public static BernoulliIntegerSubset FromLogOdds(
     int size, double logOdds)
 {
     return(BernoulliIntegerSubset.FromLogOdds(size, logOdds, SparseBernoulliList.DefaultTolerance));
 }