Portability | portable |
---|---|

Stability | experimental |

Maintainer | libraries@haskell.org |

A library providing basic vector operations for the clustering module

- type Vector a = [a]
- singleton :: a -> Vector a
- emptyVector :: [a]
- fromList :: [a] -> [Vector a]
- addV :: Num a => [a] -> [a] -> [a]
- subV :: Num a => [a] -> [a] -> [a]
- mulV :: Num a => [a] -> [a] -> [a]
- divV :: Fractional a => [a] -> [a] -> [a]
- sumV :: Num a => [[a]] -> [a]
- euklideanDistance :: Floating a => Vector a -> Vector a -> a
- qeuklideanDistance :: Floating a => [a] -> [a] -> a
- norm :: Floating a => Vector a -> a
- meanSquareV :: Floating a => [Vector a] -> a
- average :: Floating a => [a] -> a
- devsq :: Floating a => [a] -> a

# Datatypes

# Vector Creation

emptyVector :: [a]Source

creates an empty vector

# Vector Operations

divV :: Fractional a => [a] -> [a] -> [a]Source

divides two given vectors

# Vector Metrics

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

qeuklideanDistance :: Floating a => [a] -> [a] -> aSource

meanSquareV :: Floating a => [Vector a] -> aSource