Click or drag to resize

DistancePowerDistance Class

Class PowerDistance compute the power distance between two vectors.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreDistancePowerDistance

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.3
Syntax
[SerializableAttribute]
public class PowerDistance : ICloneable

The DistancePowerDistance type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyFunction
Returns a Distance.Function delegate that encapsulates this.GetDistance.
Public propertyP
Gets and sets the power for the power distance calculation.
Public propertyR
Gets and sets the root for the power distance calculation.
Top
Methods
  NameDescription
Public methodClone
Creates a deep copy of this PowerDistance.
Public methodGetDistance
Returns the power distance between two data sets, using the current values of parameters p and r.
Top
Remarks
The power distance is computed as:
distance( x, y ) = ( |xi - yi|^p )^1/r
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.
See Also