Package

breeze

numerics

Permalink

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

    Permalink

    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. object Bessel

    Permalink

    Implementations of the Bessel functions, based on Numerical Recipes

  2. object Conversions

    Permalink

    Package for common unit conversions.

  3. object I extends UFunc with MappingUFunc

    Permalink

    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

  4. val Inf: Double

    Permalink
  5. object IntMath

    Permalink

  6. val NaN: Double

    Permalink
  7. object Scaling extends Scaling

    Permalink
  8. object abs extends UFunc with MappingUFunc

    Permalink
  9. object acos extends UFunc with MappingUFunc

    Permalink
  10. object acosh extends UFunc with MappingUFunc

    Permalink
  11. object asin extends UFunc with MappingUFunc

    Permalink
  12. object asinh extends UFunc with MappingUFunc

    Permalink
  13. object atan extends UFunc with MappingUFunc

    Permalink
  14. object atan2 extends UFunc with MappingUFunc

    Permalink
  15. object atanh extends UFunc with MappingUFunc

    Permalink
  16. object cbrt extends UFunc with MappingUFunc

    Permalink
  17. object ceil extends UFunc with MappingUFunc

    Permalink
  18. def closeTo(a: Double, b: Double, relDiff: Double = 1E-4): Boolean

    Permalink

    closeTo for Doubles.

  19. package constants

    Permalink

    This package specifies standard numerical/scientific constants in SI units.

  20. object cos extends UFunc with MappingUFunc

    Permalink
  21. object cosh extends UFunc with MappingUFunc

    Permalink
  22. object digamma extends UFunc with MappingUFunc

    Permalink

    The derivative of the log gamma function

  23. object erf extends UFunc with MappingUFunc

    Permalink

    An approximation to the error function

  24. object erfc extends UFunc with MappingUFunc

    Permalink

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

  25. object erfcinv extends UFunc with MappingUFunc

    Permalink

    Inverse erfc

  26. object erfi extends UFunc with MappingUFunc

    Permalink

    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

  27. object erfinv extends UFunc with MappingUFunc

    Permalink

    Inverse erf

  28. object exp extends UFunc with MappingUFunc

    Permalink
  29. object expm1 extends UFunc with MappingUFunc

    Permalink
  30. package financial

    Permalink
  31. object floor extends UFunc with MappingUFunc

    Permalink
  32. object gammp extends UFunc with MappingUFunc

    Permalink

    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)

  33. object gammq extends UFunc with MappingUFunc

    Permalink

    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. val inf: Double

    Permalink
  35. object isEven extends UFunc with MappingUFunc

    Permalink

    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

    Permalink
  37. object isNonfinite extends UFunc with MappingUFunc

    Permalink
  38. object isOdd extends UFunc with MappingUFunc

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink
  42. object log10 extends UFunc with MappingUFunc

    Permalink
  43. object log1p extends UFunc with MappingUFunc

    Permalink
  44. object log2 extends UFunc with MappingUFunc

    Permalink
  45. object logI extends UFunc with MappingUFunc

    Permalink

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

  46. val nan: Double

    Permalink
  47. object nextExponent extends UFunc with MappingUFunc

    Permalink
  48. object nextExponent10 extends UFunc with MappingUFunc

    Permalink
  49. object nextExponent2 extends UFunc with MappingUFunc

    Permalink
  50. object nextPower extends UFunc with MappingUFunc

    Permalink
  51. object nextPower10 extends UFunc with MappingUFunc

    Permalink
  52. object nextPower2 extends UFunc with MappingUFunc

    Permalink
  53. def polyval(coefs: Array[Double], x: Double): Double

    Permalink

    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.

  54. object pow extends UFunc with MappingUFunc

    Permalink
  55. object relu extends UFunc with MappingUFunc

    Permalink

    The Relu function: max(0, x)

    The Relu function: max(0, x)

    See also

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

  56. object rint extends UFunc with MappingUFunc

    Permalink
  57. object round extends UFunc with MappingUFunc

    Permalink
  58. object sech extends UFunc with MappingUFunc

    Permalink
  59. object sigmoid extends UFunc with MappingUFunc

    Permalink

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

  60. object signum extends UFunc with MappingUFunc

    Permalink
  61. object sin extends UFunc with MappingUFunc

    Permalink
  62. object sinc extends UFunc with MappingUFunc

    Permalink

    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..

  63. object sincpi extends UFunc with MappingUFunc

    Permalink

    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.

  64. object sinh extends UFunc with MappingUFunc

    Permalink
  65. object sqrt extends UFunc with MappingUFunc

    Permalink
  66. object tan extends UFunc with MappingUFunc

    Permalink
  67. object tanh extends UFunc with MappingUFunc

    Permalink
  68. object toDegrees extends UFunc with MappingUFunc

    Permalink
  69. object toRadians extends UFunc with MappingUFunc

    Permalink
  70. object trigamma extends UFunc with MappingUFunc

    Permalink

    The second derivative of the log gamma function

  71. package units

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped