@author Will_and_Sara
SpecialFunctions
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Factorial | 1 | could be improved with unsigned integers or the gamma function |
| FactorialCalculation | 2 | |
| Combination | 1 | calculates C(n, k). |
| Permutation | 1 | calculates P(n, k). |
| Binom | 1 | |
| MutualProbability | 1 | http://lethalman.blogspot.com/2011/08/probability-of-union-of-independent.html |
| RegularizedIncompleteBetaFunction | 1 | The regularized incomplete beta function https://en.wikipedia.org/wiki/Beta_function#Incomplete_beta_function |
| incbcf | 1 | Continued fraction expansion #1 * for incomplete beta integral |
| incbd | 1 | Continued fraction expansion #2 * for incomplete beta integral |
| pseries | 1 | Power series for incomplete beta integral. |
| StirlingsFormula | 1 | https://www.ncnr.nist.gov/resources/sansmodels/SpecialFunction.java //previous name was stirf |
| EvaluatePolynomial | 1 | https://www.ncnr.nist.gov/resources/sansmodels/SpecialFunction.java //previous name was polevl |
| IncompleteGammaComplement | 1 | https://www.ncnr.nist.gov/resources/sansmodels/SpecialFunction.java //previous name was igamc |
| IncompleteGamma | 1 | https://www.ncnr.nist.gov/resources/sansmodels/SpecialFunction.java //previous name was igam |
| gammaln | 1 | testing showed Ben's code and this code were roughly equivalent (also to excel) however, Ben's code executed faster in the time trials. |
| gamma | 1 | testing showed Ben's code and this code were roughly equivalent (also to excel) however, Ben's code executed faster in the time trials. |
| Covariance | 1 | |
| Correlation | 1 | |
| Choose | 1 | |
| BinomialCoefficient | 1 | |
| Binomial | 1 | |
| InvBinomal | 1 | |
| BetaFunction | 1 |
03 Members
Int32, Int32)could be improved with unsigned integers or the gamma function
| Name | Type | Description |
|---|---|---|
N | Int32 | - |
k | Int32 | - |
Int32)n!
| Name | Type | Description |
|---|---|---|
n | Int32 | - |
Int32, Int32)calculates C(n, k).
implements the excel function COMBIN(number, number_chosen).
COMBIN(8,2) = 28
| Name | Type | Description |
|---|---|---|
n | Int32 | - |
k | Int32 | - |
Int32, Int32)calculates P(n, k).
| Name | Type | Description |
|---|---|---|
n | Int32 | - |
k | Int32 | - |
Int32, Int32)| Name | Type | Description |
|---|---|---|
n | Int32 | - |
k | Int32 | - |
Double())| Name | Type | Description |
|---|---|---|
probabilities | Double() | - |
Double, Double, Double)The regularized incomplete beta function
https://en.wikipedia.org/wiki/Beta_function#Incomplete_beta_function
| Name | Type | Description |
|---|---|---|
aa | Double | - |
bb | Double | - |
xx | Double | - |
Double, Double, Double)Continued fraction expansion #1
- for incomplete beta integral
| Name | Type | Description |
|---|---|---|
a | Double | - |
b | Double | - |
x | Double | - |
Double, Double, Double)Continued fraction expansion #2
- for incomplete beta integral
| Name | Type | Description |
|---|---|---|
a | Double | - |
b | Double | - |
x | Double | - |
Double, Double, Double)Power series for incomplete beta integral. Use when b*x is small and x not too close to 1.
| Name | Type | Description |
|---|---|---|
a | Double | - |
b | Double | - |
x | Double | - |
Double)https://www.ncnr.nist.gov/resources/sansmodels/SpecialFunction.java //previous name was stirf
| Name | Type | Description |
|---|---|---|
x | Double | - |
Double, Double())https://www.ncnr.nist.gov/resources/sansmodels/SpecialFunction.java //previous name was polevl
| Name | Type | Description |
|---|---|---|
x | Double | - |
coefficients | Double() | - |
Double, Double)https://www.ncnr.nist.gov/resources/sansmodels/SpecialFunction.java //previous name was igamc
| Name | Type | Description |
|---|---|---|
a | Double | - |
x | Double | - |
Double, Double)https://www.ncnr.nist.gov/resources/sansmodels/SpecialFunction.java //previous name was igam
| Name | Type | Description |
|---|---|---|
a | Double | - |
x | Double | - |
Double)testing showed Ben's code and this code were roughly equivalent (also to excel) however, Ben's code executed faster in the time trials.
| Name | Type | Description |
|---|---|---|
x | Double | - |
Double)testing showed Ben's code and this code were roughly equivalent (also to excel) however, Ben's code executed faster in the time trials. https://www.ncnr.nist.gov/resources/sansmodels/SpecialFunction.java
| Name | Type | Description |
|---|---|---|
x | Double | - |
Double(), Double())Double(), Double())Int32, Int32)Int32, Int32)Int32, Int32)Double, Int32, Int32)Double, Int32, Int32)Double, Double)