Class Norm
Static class Distance. Defines a set of methods defining distance measures.
Inheritance
System.Object
Norm
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Mars.Numerics.dll
Syntax
Methods
|
Improve this Doc
View Source
Euclidean(Sparse<Double>)
Gets the Euclidean norm for a matrix.
Declaration
public static double Euclidean(this Sparse<double> a)
Parameters
Type |
Name |
Description |
Sparse<System.Double> |
a |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Euclidean(Sparse<Double>[], Int32)
Gets the Euclidean norm for a matrix.
Declaration
public static double[] Euclidean(this Sparse<double>[] a, int dimension)
Parameters
Type |
Name |
Description |
Sparse<System.Double>[] |
a |
|
System.Int32 |
dimension |
|
Returns
Type |
Description |
System.Double[] |
|
|
Improve this Doc
View Source
Euclidean(Double[])
Gets the Euclidean norm for a vector.
Declaration
public static double Euclidean(this double[] a)
Parameters
Type |
Name |
Description |
System.Double[] |
a |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Euclidean(Double[][], Int32)
Gets the Euclidean norm for a matrix.
Declaration
public static double[] Euclidean(this double[][] a, int dimension)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
|
System.Int32 |
dimension |
|
Returns
Type |
Description |
System.Double[] |
|
|
Improve this Doc
View Source
Euclidean(Double[][])
Gets the Euclidean norm for a matrix.
Declaration
public static double Euclidean(this double[][] a)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Euclidean(Double[,], Int32)
Gets the Euclidean norm for a matrix.
Declaration
public static double[] Euclidean(this double[, ] a, int dimension)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
|
System.Int32 |
dimension |
|
Returns
Type |
Description |
System.Double[] |
|
|
Improve this Doc
View Source
Euclidean(Double[,])
Gets the Euclidean norm for a matrix.
Declaration
public static double Euclidean(this double[, ] a)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Frobenius(Double[][])
Gets the square root of the sum of squares for all elements in a matrix.
Declaration
public static double Frobenius(this double[][] a)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Frobenius(Double[,])
Gets the square root of the sum of squares for all elements in a matrix.
Declaration
public static double Frobenius(this double[, ] a)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
SquareEuclidean(Sparse<Double>)
Gets the Squared Euclidean norm for a vector.
Declaration
public static double SquareEuclidean(this Sparse<double> a)
Parameters
Type |
Name |
Description |
Sparse<System.Double> |
a |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
SquareEuclidean(Sparse<Double>[], Int32)
Gets the Squared Euclidean norm vector for a matrix.
Declaration
public static double[] SquareEuclidean(this Sparse<double>[] a, int dimension)
Parameters
Type |
Name |
Description |
Sparse<System.Double>[] |
a |
|
System.Int32 |
dimension |
|
Returns
Type |
Description |
System.Double[] |
|
|
Improve this Doc
View Source
SquareEuclidean(Double[])
Gets the Squared Euclidean norm for a vector.
Declaration
public static double SquareEuclidean(this double[] a)
Parameters
Type |
Name |
Description |
System.Double[] |
a |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
SquareEuclidean(Double[][], Int32)
Gets the Squared Euclidean norm vector for a matrix.
Declaration
public static double[] SquareEuclidean(this double[][] a, int dimension)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
|
System.Int32 |
dimension |
|
Returns
Type |
Description |
System.Double[] |
|
|
Improve this Doc
View Source
SquareEuclidean(Double[][])
Gets the Squared Euclidean norm for a matrix.
Declaration
public static double SquareEuclidean(this double[][] a)
Parameters
Type |
Name |
Description |
System.Double[][] |
a |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
SquareEuclidean(Double[,], Int32)
Gets the Squared Euclidean norm vector for a matrix.
Declaration
public static double[] SquareEuclidean(this double[, ] a, int dimension)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
|
System.Int32 |
dimension |
|
Returns
Type |
Description |
System.Double[] |
|
|
Improve this Doc
View Source
SquareEuclidean(Double[,])
Gets the Squared Euclidean norm for a matrix.
Declaration
public static double SquareEuclidean(this double[, ] a)
Parameters
Type |
Name |
Description |
System.Double[,] |
a |
|
Returns
Type |
Description |
System.Double |
|