程序包 weka.core

类 SpecialFunctions

java.lang.Object
weka.core.SpecialFunctions
所有已实现的接口:
RevisionHandler

public final class SpecialFunctions extends Object implements 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(String[] ops)
    Main method for testing this class.

    从类继承的方法 java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • 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 coefficient
      b - 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 coefficient
      bs - lower part
      返回:
      multinomial coefficient of a over the bs
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision
    • main

      public static void main(String[] ops)
      Main method for testing this class.