Class PowerDistance compute the power distance between two vectors.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
[SerializableAttribute] public class PowerDistance : ICloneable |
| Visual Basic (Declaration) |
|---|
<SerializableAttribute> _ Public Class PowerDistance _ Implements ICloneable |
| Visual C++ |
|---|
[SerializableAttribute] public ref class PowerDistance : ICloneable |
Remarks
The power distance is computed as:
CopyC#
where p and r are user-defined parameters. Parameter p
controls the progressive weight that is placed on differences on individual
dimensions; parameter r controls the progressive weight that is placed
on larger differences between objects. Appropriate selections of p and
r yield Euclidean, squared Euclidean, Minkowski, city-block, and many
other distance metrics. For example, if p and r are equal to 2,
the power distance is equal to the Euclidean distance.
Property DistanceDelegate returns a Distance.Function delegate that encapsulates this.GetDistance. The returned delegate can be used by an instance of class ClusterAnalysis for computing the distances between objects during cluster analysis using the power distance metric.
distance( x, y ) = ( |xi - yi|^p )^1/rProperty DistanceDelegate returns a Distance.Function delegate that encapsulates this.GetDistance. The returned delegate can be used by an instance of class ClusterAnalysis for computing the distances between objects during cluster analysis using the power distance metric.