Returns the binomial coefficient ("n choose m"), the number of ways of
picking m unordered outcomes from n possibilities.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public static double Binomial( int n, int m ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Binomial ( _ n As Integer, _ m As Integer _ ) As Double |
| Visual C++ |
|---|
public: static double Binomial( int n, int m ) |
Parameters
- n
- Type: System..::.Int32
The total number of possibilities.
- m
- Type: System..::.Int32
The number of desired outcomes.
Return Value
The binomial coefficient.
Remarks
The binomial coefficient nCm ("n choose m") is defined by:
CopyC#
nCm = n! / ( m!(n-m)! )