hopfield-networks-0.1.0.0: Hopfield Networks for unsupervised learning in Haskell

Safe HaskellNone

MachineLearning.Util

Description

Utility code used for matrix/vector manipulation

Synopsis

Documentation

norm :: Floating a => Vector a -> aSource

The L^2 norm of a vector in R^n.

difference :: Floating a => Vector a -> Vector a -> aSource

Distance between vectors in the Hilbert space induced by the L^2 norm on R^n.

dotProduct :: Num b => Vector b -> Vector b -> bSource

The inner product in R^n.

innerProduct :: Num a => Matrix a -> Vector a -> aSource

The inner product on R^n induced by a PSD matrix M. Computes the mapping x |-> x^T M x with x in R^n, M in R^{n x n}.