SeqLpNormedVectorSpace
@SerialVersionUID(0L)
class SeqLpNormedVectorSpace[A, SA <: SeqOps[A, Seq, SA]](val p: Int)(implicit evidence$3: Field[A], evidence$4: NRoot[A], evidence$5: Signed[A], cbf: Factory[A, SA]) extends SeqVectorSpace[A, SA] with NormedVectorSpace[SA, A] with Serializable
The L_p norm is equal to the p
-th root of the sum of each element to the power p
. For instance, if p = 1
we
have the Manhattan distance. If you'd like the Euclidean norm (p = 2
), then you'd probably be best to use an
RealInnerProductSpace
instead.
trait AdditiveCommutativeGroup[SA]
trait AdditiveCommutativeMonoid[SA]
trait AdditiveCommutativeSemigroup[SA]
trait AdditiveGroup[SA]
trait AdditiveMonoid[SA]
trait AdditiveSemigroup[SA]
trait Serializable
class Object
trait Matchable
class Any
Value members
Concrete methods
Inherited methods
override
- Definition Classes
- AdditiveCommutativeGroup -> AdditiveCommutativeMonoid -> AdditiveCommutativeSemigroup -> AdditiveGroup -> AdditiveMonoid -> AdditiveSemigroup
- Inherited from
- AdditiveCommutativeGroup
@nowarn("msg=deprecated")
Given a sequence of as
, compute the sum.
Given a sequence of as
, compute the sum.
- Inherited from
- AdditiveMonoid
override
- Definition Classes
- AdditiveGroup -> AdditiveMonoid -> AdditiveSemigroup
- Inherited from
- AdditiveGroup