Packages

p

breeze

numerics

package numerics

Contains several standard numerical functions as UFunc with MappingUFuncs,

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. numerics
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait Scaling extends AnyRef

    Scaling utilities.

    Scaling utilities.

    Often, in order to avoid underflow, we can offload some of the exponent of a double into an int. To make things more efficient, we can actually share that exponent between doubles.

    The scales used in this trait are in log space: they can be safely added and subtracted.

Value Members

  1. val Inf: Double
  2. val NaN: Double
  3. def closeTo(a: Double, b: Double, relDiff: Double = 1E-4): Boolean

    closeTo for Doubles.

  4. val inf: Double
  5. val nan: Double
  6. def polyval(coefs: Array[Double], x: Double): Double

    Computes the polynomial P(x) with coefficients given in the passed in array.

    Computes the polynomial P(x) with coefficients given in the passed in array. coefs(i) is the coef for the x_i term.

  7. object Bessel

    Implementations of the Bessel functions, based on Numerical Recipes

  8. object Conversions

    Package for common unit conversions.

  9. object I extends UFunc with MappingUFunc

    The indicator function.

    The indicator function. 1.0 iff b, else 0.0 For non-boolean arguments, 1.0 iff b != 0, else 0.0

  10. object IntMath

  11. object Scaling extends Scaling
  12. object abs extends UFunc with MappingUFunc
  13. object acos extends UFunc with MappingUFunc
  14. object acosh extends UFunc with MappingUFunc
  15. object asin extends UFunc with MappingUFunc
  16. object asinh extends UFunc with MappingUFunc
  17. object atan extends UFunc with MappingUFunc
  18. object atan2 extends UFunc with MappingUFunc
  19. object atanh extends UFunc with MappingUFunc
  20. object cbrt extends UFunc with MappingUFunc
  21. object ceil extends UFunc with MappingUFunc
  22. object cos extends UFunc with MappingUFunc
  23. object cosh extends UFunc with MappingUFunc
  24. object digamma extends UFunc with MappingUFunc

    The derivative of the log gamma function

  25. object erf extends UFunc with MappingUFunc

    An approximation to the error function

  26. object erfc extends UFunc with MappingUFunc

    An approximation to the complementary error function: erfc(x) = 1 - erfc(x)

  27. object erfcinv extends UFunc with MappingUFunc

    Inverse erfc

  28. object erfi extends UFunc with MappingUFunc

    The imaginary error function for real argument x.

    The imaginary error function for real argument x.

    Adapted from http://www.mathworks.com/matlabcentral/newsreader/view_thread/24120 verified against mathematica

  29. object erfinv extends UFunc with MappingUFunc

    Inverse erf

  30. object exp extends UFunc with MappingUFunc
  31. object expm1 extends UFunc with MappingUFunc
  32. object floor extends UFunc with MappingUFunc
  33. object gammp extends UFunc with MappingUFunc

    regularized incomplete gamma function \int_0x \exp(-t)pow(t,a-1) dt / Gamma(a)

    regularized incomplete gamma function \int_0x \exp(-t)pow(t,a-1) dt / Gamma(a)

    See also

    http://commons.apache.org/proper/commons-math/apidocs/org/apache/commons/math3/special/Gamma.html#regularizedGammaP(double, double)

  34. object gammq extends UFunc with MappingUFunc

    regularized incomplete gamma function \int_0x \exp(-t)pow(t,a-1) dt / Gamma(a)

    regularized incomplete gamma function \int_0x \exp(-t)pow(t,a-1) dt / Gamma(a)

    See also

    http://commons.apache.org/proper/commons-math/apidocs/org/apache/commons/math3/special/Gamma.html#regularizedGammaP(double, double)

  35. object isEven extends UFunc with MappingUFunc

    Whether a number is even.

    Whether a number is even. For Double and Float, isEven also implies that the number is an integer, and therefore does not necessarily equal !isOdd for fractional input.

  36. object isFinite extends UFunc with MappingUFunc
  37. object isNonfinite extends UFunc with MappingUFunc
  38. object isOdd extends UFunc with MappingUFunc

    Whether a number is odd.

    Whether a number is odd. For Double and Float, isOdd also implies that the number is an integer, and therefore does not necessarily equal !isEven for fractional input.

  39. object lbeta extends UFunc

    Evaluates the log of the generalized beta function.

    Evaluates the log of the generalized beta function. \sum_a lgamma(c(a))- lgamma(c.sum)

  40. object lgamma extends UFunc with MappingUFunc

    Computes the log of the gamma function.

    Computes the log of the gamma function. The two parameter version is the log Incomplete gamma function = \log \int_0x \exp(-t)pow(t,a-1) dt

    returns

    an approximation of the log of the Gamma function of x.

  41. object log extends UFunc with MappingUFunc
  42. object log10 extends UFunc with MappingUFunc
  43. object log1p extends UFunc with MappingUFunc
  44. object log2 extends UFunc with MappingUFunc
  45. object logI extends UFunc with MappingUFunc

    The indicator function in log space: 0.0 iff b else Double.NegativeInfinity

  46. object logit extends UFunc with MappingUFunc

    The logit (inverse sigmoid) function: -log((1/x) - 1)

  47. object nextExponent extends UFunc with MappingUFunc
  48. object nextExponent10 extends UFunc with MappingUFunc
  49. object nextExponent2 extends UFunc with MappingUFunc
  50. object nextPower extends UFunc with MappingUFunc
  51. object nextPower10 extends UFunc with MappingUFunc
  52. object nextPower2 extends UFunc with MappingUFunc
  53. object pow extends UFunc with MappingUFunc
  54. object relu extends UFunc with MappingUFunc

    The Relu function: max(0, x)

    The Relu function: max(0, x)

    See also

    https://en.wikipedia.org/wiki/Rectifier_(neural_networks)

  55. object rint extends UFunc with MappingUFunc
  56. object round extends UFunc with MappingUFunc
  57. object sech extends UFunc with MappingUFunc
  58. object sigmoid extends UFunc with MappingUFunc

    The sigmoid function: 1/(1 + exp(-x))

  59. object signum extends UFunc with MappingUFunc
  60. object sin extends UFunc with MappingUFunc
  61. object sinc extends UFunc with MappingUFunc

    The sine cardinal (sinc) function, as defined by sinc(0)=1, sinc(n != 0)=sin(x)/x.

    The sine cardinal (sinc) function, as defined by sinc(0)=1, sinc(n != 0)=sin(x)/x. Note that this differs from some signal analysis conventions, where sinc(n != 0) is defined by sin(Pi*x)/(Pi*x). This variant is provided for convenience as breeze.numerics.sincpi. Use it instead when translating from numpy.sinc..

  62. object sincpi extends UFunc with MappingUFunc

    The pi-normalized sine cardinal (sinc) function, as defined by sinc(0)=1, sinc(n != 0)=sin(Pi*x)/(Pi*x).

    The pi-normalized sine cardinal (sinc) function, as defined by sinc(0)=1, sinc(n != 0)=sin(Pi*x)/(Pi*x). See also breeze.numerics.sinc.

  63. object sinh extends UFunc with MappingUFunc
  64. object sqrt extends UFunc with MappingUFunc
  65. object tan extends UFunc with MappingUFunc
  66. object tanh extends UFunc with MappingUFunc
  67. object toDegrees extends UFunc with MappingUFunc
  68. object toRadians extends UFunc with MappingUFunc
  69. object trigamma extends UFunc with MappingUFunc

    The second derivative of the log gamma function

Inherited from AnyRef

Inherited from Any

Ungrouped