HLearn-algebra-1.0.1.1: Algebraic foundation for homomorphic learning

Safe HaskellNone

HLearn.Algebra.Structures.MetricSpace

Description

Metric spaces are mathematical structures that have a notion of distance between objects. See wikipedia for more information: https://en.wikipedia.org/wiki/Metric_space

Synopsis

Documentation

class HasRing s => MetricSpace s whereSource

We assume that the MetricSpace on s is compatible with the ordering on s

Methods

distance :: s -> s -> Ring sSource

Instances

Floating r => MetricSpace (L2 [r]) 

class (Module m, MetricSpace m) => Norm m whereSource

Methods

magnitude :: m -> Ring mSource

Instances

(Module m, MetricSpace m) => Norm m