C# Class StopGuessing.DataStructures.BinomialDistribution

ファイルを表示 Open project: Microsoft/StopGuessing Class Usage Examples

Protected Properties

Property Type Description
CacheOfCalculatedDistributions BinomialDistribution>.Dictionary
RwLock System.Threading.ReaderWriterLockSlim

Public Methods

Method Description
ForCoinFlips ( int numberOfCoinFlips ) : BinomialDistribution
ProbabilityFewerSetByChance ( int howMany ) : double
ProbabilityMoreSetByChance ( int howMany ) : double
ProbabilityThisManyOrMoreSetByChance ( int howMany ) : double
ProbabilityThisManySetByChance ( int howMany ) : double
ProbabilityThisOrFewerManySetByChance ( int howMany ) : double
this ( int index ) : double

Protected Methods

Method Description
BinomialDistribution ( int outOf ) : System

Method Details

BinomialDistribution() protected method

protected BinomialDistribution ( int outOf ) : System
outOf int
return System

ForCoinFlips() public static method

public static ForCoinFlips ( int numberOfCoinFlips ) : BinomialDistribution
numberOfCoinFlips int
return BinomialDistribution

ProbabilityFewerSetByChance() public method

public ProbabilityFewerSetByChance ( int howMany ) : double
howMany int
return double

ProbabilityMoreSetByChance() public method

public ProbabilityMoreSetByChance ( int howMany ) : double
howMany int
return double

ProbabilityThisManyOrMoreSetByChance() public method

public ProbabilityThisManyOrMoreSetByChance ( int howMany ) : double
howMany int
return double

ProbabilityThisManySetByChance() public method

public ProbabilityThisManySetByChance ( int howMany ) : double
howMany int
return double

ProbabilityThisOrFewerManySetByChance() public method

public ProbabilityThisOrFewerManySetByChance ( int howMany ) : double
howMany int
return double

this() public method

public this ( int index ) : double
index int
return double

Property Details

CacheOfCalculatedDistributions protected_oe static_oe property

protected static Dictionary CacheOfCalculatedDistributions
return BinomialDistribution>.Dictionary

RwLock protected_oe static_oe property

protected static ReaderWriterLockSlim,System.Threading RwLock
return System.Threading.ReaderWriterLockSlim