WeightedEuclidean Structure |
Namespace: Accord.Math.Distances
[SerializableAttribute] public struct WeightedEuclidean : IMetric<double[]>, IDistance<double[]>, IDistance<double[], double[]>, ISimilarity<double[]>, ISimilarity<double[], double[]>
The WeightedEuclidean type exposes the following members.
Name | Description | |
---|---|---|
WeightedEuclidean(Double) |
Initializes a new instance of the WeightedEuclidean struct.
| |
WeightedEuclidean(Int32) |
Initializes a new instance of the WeightedEuclidean struct.
|
Name | Description | |
---|---|---|
Weights |
Gets or sets the weights for each dimension. Default is a vector of ones.
|
Name | Description | |
---|---|---|
Distance |
Computes the distance d(x,y) between points
x and y.
| |
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Similarity |
Gets a similarity measure between two points.
| |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
To(Type) | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) | |
ToT | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) |