ConClusion-0.2.1: Cluster algorithms, PCA, and chemical conformere analysis
CopyrightPhillip Seeber 2022
LicenseAGPL-3
Maintainerphillip.seeber@googlemail.com
Stabilityexperimental
PortabilityPOSIX, Windows
Safe HaskellSafe-Inferred
LanguageHaskell2010

ConClusion.Array.Util

Description

 
Synopsis

Documentation

newtype IndexException Source #

Exception regarding indexing in some kind of aaray.

Constructors

IndexException String 

magnitude :: (Numeric r e, Source r e, Floating e) => Vector r e -> e Source #

Magnitude of a vector (length).

normalise :: (Numeric r e, Source r e, Floating e) => Vector r e -> Vector r e Source #

Normalise a vector.

angle :: (Numeric r e, Source r e, Floating e) => Vector r e -> Vector r e -> e Source #

Angle between two vectors.

minDistAt :: (Manifest r e, MonadThrow m, Ord e) => Matrix r e -> m (e, Ix2) Source #

Find the minimal distance in a distance matrix, which is not the main diagonal.

minDistAtVec :: (Manifest r e, MonadThrow m, Ord e) => Ix1 -> Vector r e -> m (e, Ix1) Source #

Find the minimal element of a vector, which is at a larger than the supplied index.

iMinimumM :: (Manifest r a, MonadThrow m, Index ix, Ord a) => Array r ix a -> m (a, ix) Source #

Like minimumM but also returns the index of the minimal element.