module Apatite::LinearAlgebra

Extended Modules

Direct including types

Defined in:

apatite/linear_algebra/error.cr
apatite/linear_algebra/vector.cr
apatite/linear_algebra/matrix/eigenvalue_decomposition.cr
apatite/linear_algebra/matrix/lup_decomposition.cr
apatite/linear_algebra/matrix.cr
apatite/linear_algebra.cr
apatite/linear_algebra/ndarray.cr

Instance Method Summary

Instance Method Detail

def sigmoid(input : Number) #

Calculates the sigmoid curve for a numeric input.

f(x) = 1/(1 + e^-x)

See also: Sigmoid function (WikiWand)


[View source]
def sigmoid_d(input : Number) #

Calculates the derivative sigmoid curve for a numeric input.

f'(x) = f(x)(1 - f(x)),


[View source]