HLearn-algebra-1.1.0.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

class (HasRing m, Ord (Ring m)) => Norm m whereSource

Methods

magnitude :: m -> Ring mSource