程序包 weka.core
类 SpecialFunctions
java.lang.Object
weka.core.SpecialFunctions
- 所有已实现的接口:
RevisionHandler
Class implementing some mathematical functions.
- 版本:
- $Revision: 1.8 $
- 作者:
- Eibe Frank (eibe@cs.waikato.ac.nz)
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the revision string.static double
lnFactorial
(double x) Returns natural logarithm of factorial using gamma function.static double
log2Binomial
(double a, double b) Returns base 2 logarithm of binomial coefficient using gamma function.static double
log2Multinomial
(double a, double[] bs) Returns base 2 logarithm of multinomial using gamma function.static void
Main method for testing this class.
-
构造器详细资料
-
SpecialFunctions
public SpecialFunctions()
-
-
方法详细资料
-
lnFactorial
public static double lnFactorial(double x) Returns natural logarithm of factorial using gamma function.- 参数:
x
- the value- 返回:
- natural logarithm of factorial
-
log2Binomial
public static double log2Binomial(double a, double b) Returns base 2 logarithm of binomial coefficient using gamma function.- 参数:
a
- upper part of binomial coefficientb
- lower part- 返回:
- the base 2 logarithm of the binominal coefficient a over b
-
log2Multinomial
public static double log2Multinomial(double a, double[] bs) Returns base 2 logarithm of multinomial using gamma function.- 参数:
a
- upper part of multinomial coefficientbs
- lower part- 返回:
- multinomial coefficient of a over the bs
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-
main
Main method for testing this class.
-