程序包 weka.core.matrix

类 Maths

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

public class Maths extends Object implements RevisionHandler
Utility class.

Adapted from the JAMA package.

版本:
$Revision: 1.3 $
作者:
The Mathworks and NIST, Fracpete (fracpete at waikato dot ac dot nz)
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final int
    Distribution type: chi-squared
    static final double
    The constant - log( sqrt(2 pi) )
    static final int
    Distribution type: noraml
    static final double
    The constant 1 / sqrt(2 pi)
    static final int
    Distribution type: undefined
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static double
    dchisq(double x)
    Returns the density of the Chi-squared distribution.
    static double
    dchisq(double x, double ncp)
    Returns the density of the noncentral Chi-squared distribution.
    dchisq(double x, DoubleVector ncp)
    Returns the density of the noncentral Chi-squared distribution.
    static double
    dchisqLog(double x)
    Returns the log-density of the noncentral Chi-square distribution.
    static double
    dchisqLog(double x, double ncp)
    Returns the log-density value of a noncentral Chi-square distribution.
    dchisqLog(double x, DoubleVector ncp)
    Returns the log-density of a set of noncentral Chi-squared distributions.
    static double
    dnorm(double x)
    Returns the density of the standard normal.
    static double
    dnorm(double x, double mean, double sd)
    Returns the density value of a standard normal.
    dnorm(double x, DoubleVector mean, double sd)
    Returns the density values of a set of normal distributions with different means.
    static double
    dnormLog(double x)
    Returns the log-density of the standard normal.
    static double
    dnormLog(double x, double mean, double sd)
    Returns the log-density value of a standard normal.
    dnormLog(double x, DoubleVector mean, double sd)
    Returns the log-density values of a set of normal distributions with different means.
    Returns the revision string.
    static double
    hypot(double a, double b)
    sqrt(a^2 + b^2) without under/overflow.
    static double
    pchisq(double x)
    Returns the cumulative probability of the Chi-squared distribution
    static double
    pchisq(double x, double ncp)
    Returns the cumulative probability of the noncentral Chi-squared distribution.
    pchisq(double x, DoubleVector ncp)
    Returns the cumulative probability of a set of noncentral Chi-squared distributions.
    static double
    pnorm(double x)
    Returns the cumulative probability of the standard normal.
    static double
    pnorm(double x, double mean, double sd)
    Returns the cumulative probability of a normal distribution.
    pnorm(double x, DoubleVector mean, double sd)
    Returns the cumulative probability of a set of normal distributions with different means.
    rchisq(int n, double ncp, Random random)
    Generates a sample of a Chi-square distribution.
    rnorm(int n, double mean, double sd, Random random)
    Generates a sample of a normal distribution.
    static double
    square(double x)
    Returns the square of a value

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

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • PSI

      public static final double PSI
      The constant 1 / sqrt(2 pi)
      另请参阅:
    • logPSI

      public static final double logPSI
      The constant - log( sqrt(2 pi) )
      另请参阅:
    • undefinedDistribution

      public static final int undefinedDistribution
      Distribution type: undefined
      另请参阅:
    • normalDistribution

      public static final int normalDistribution
      Distribution type: noraml
      另请参阅:
    • chisqDistribution

      public static final int chisqDistribution
      Distribution type: chi-squared
      另请参阅:
  • 构造器详细资料

    • Maths

      public Maths()
  • 方法详细资料

    • hypot

      public static double hypot(double a, double b)
      sqrt(a^2 + b^2) without under/overflow.
    • square

      public static double square(double x)
      Returns the square of a value
      参数:
      x -
      返回:
      the square
    • pnorm

      public static double pnorm(double x)
      Returns the cumulative probability of the standard normal.
      参数:
      x - the quantile
    • pnorm

      public static double pnorm(double x, double mean, double sd)
      Returns the cumulative probability of a normal distribution.
      参数:
      x - the quantile
      mean - the mean of the normal distribution
      sd - the standard deviation of the normal distribution.
    • pnorm

      public static DoubleVector pnorm(double x, DoubleVector mean, double sd)
      Returns the cumulative probability of a set of normal distributions with different means.
      参数:
      x - the vector of quantiles
      mean - the means of the normal distributions
      sd - the standard deviation of the normal distribution.
      返回:
      the cumulative probability
    • dnorm

      public static double dnorm(double x)
      Returns the density of the standard normal.
      参数:
      x - the quantile
      返回:
      the density
    • dnorm

      public static double dnorm(double x, double mean, double sd)
      Returns the density value of a standard normal.
      参数:
      x - the quantile
      mean - the mean of the normal distribution
      sd - the standard deviation of the normal distribution.
      返回:
      the density
    • dnorm

      public static DoubleVector dnorm(double x, DoubleVector mean, double sd)
      Returns the density values of a set of normal distributions with different means.
      参数:
      x - the quantile
      mean - the means of the normal distributions
      sd - the standard deviation of the normal distribution.
      返回:
      the density
    • dnormLog

      public static double dnormLog(double x)
      Returns the log-density of the standard normal.
      参数:
      x - the quantile
      返回:
      the density
    • dnormLog

      public static double dnormLog(double x, double mean, double sd)
      Returns the log-density value of a standard normal.
      参数:
      x - the quantile
      mean - the mean of the normal distribution
      sd - the standard deviation of the normal distribution.
      返回:
      the density
    • dnormLog

      public static DoubleVector dnormLog(double x, DoubleVector mean, double sd)
      Returns the log-density values of a set of normal distributions with different means.
      参数:
      x - the quantile
      mean - the means of the normal distributions
      sd - the standard deviation of the normal distribution.
      返回:
      the density
    • rnorm

      public static DoubleVector rnorm(int n, double mean, double sd, Random random)
      Generates a sample of a normal distribution.
      参数:
      n - the size of the sample
      mean - the mean of the normal distribution
      sd - the standard deviation of the normal distribution.
      random - the random stream
      返回:
      the sample
    • pchisq

      public static double pchisq(double x)
      Returns the cumulative probability of the Chi-squared distribution
      参数:
      x - the quantile
    • pchisq

      public static double pchisq(double x, double ncp)
      Returns the cumulative probability of the noncentral Chi-squared distribution.
      参数:
      x - the quantile
      ncp - the noncentral parameter
    • pchisq

      public static DoubleVector pchisq(double x, DoubleVector ncp)
      Returns the cumulative probability of a set of noncentral Chi-squared distributions.
      参数:
      x - the quantile
      ncp - the noncentral parameters
    • dchisq

      public static double dchisq(double x)
      Returns the density of the Chi-squared distribution.
      参数:
      x - the quantile
      返回:
      the density
    • dchisq

      public static double dchisq(double x, double ncp)
      Returns the density of the noncentral Chi-squared distribution.
      参数:
      x - the quantile
      ncp - the noncentral parameter
    • dchisq

      public static DoubleVector dchisq(double x, DoubleVector ncp)
      Returns the density of the noncentral Chi-squared distribution.
      参数:
      x - the quantile
      ncp - the noncentral parameters
    • dchisqLog

      public static double dchisqLog(double x)
      Returns the log-density of the noncentral Chi-square distribution.
      参数:
      x - the quantile
      返回:
      the density
    • dchisqLog

      public static double dchisqLog(double x, double ncp)
      Returns the log-density value of a noncentral Chi-square distribution.
      参数:
      x - the quantile
      ncp - the noncentral parameter
      返回:
      the density
    • dchisqLog

      public static DoubleVector dchisqLog(double x, DoubleVector ncp)
      Returns the log-density of a set of noncentral Chi-squared distributions.
      参数:
      x - the quantile
      ncp - the noncentral parameters
    • rchisq

      public static DoubleVector rchisq(int n, double ncp, Random random)
      Generates a sample of a Chi-square distribution.
      参数:
      n - the size of the sample
      ncp - the noncentral parameter
      random - the random stream
      返回:
      the sample
    • getRevision

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