C# Класс Accord.Math.ComplexMatrix

Static class ComplexExtensions. Defines a set of extension methods that operates mainly on multidimensional arrays and vectors of AForge.NET's Complex data type.
Показать файл Открыть проект

Открытые методы

Метод Описание
Abs ( this x ) : Complex[]

Computes the absolute value of an array of complex numbers.

Im ( this c ) : ].double[

Returns the imaginary matrix part of the complex matrix c.

Im ( this c ) : double[]

Returns the imaginary vector part of the complex vector c.

IsEqual ( this objA, Complex objB, double threshold ) : bool

Compares two matrices for equality, considering an acceptance threshold.

Magnitude ( this c ) : ].double[

Gets the magnitude of every complex number in a matrix.

Magnitude ( this c ) : double[]

Gets the magnitude of every complex number in an array.

Multiply ( this a, Complex b ) : Complex[]

Elementwise multiplication of two complex vectors.

Phase ( this c ) : double[]

Gets the phase of every complex number in an array.

Range ( this array ) : DoubleRange

Gets the range of the magnitude values in a complex number vector.

Re ( this c ) : ].double[

Returns the real matrix part of the complex matrix c.

Re ( this c ) : double[]

Returns the real vector part of the complex vector c.

Sum ( this x ) : Complex

Computes the sum of an array of complex numbers.

ToArray ( this c ) : ].double[

Converts a complex number to a matrix of scalar values in which the first column contains the real values and the second column contains the imaginary values.

ToComplex ( this real ) : Complex[]

Converts a vector of real numbers to complex numbers.

ToComplex ( this real, double imag ) : Complex[]

Combines a vector of real and a vector of imaginary numbers to form complex numbers.

Приватные методы

Метод Описание
SquaredMagnitude ( this value ) : double

Описание методов

Abs() публичный статический метод

Computes the absolute value of an array of complex numbers.
public static Abs ( this x ) : Complex[]
x this
Результат Complex[]

Im() публичный статический метод

Returns the imaginary matrix part of the complex matrix c.
public static Im ( this c ) : ].double[
c this A matrix of complex numbers.
Результат ].double[

Im() публичный статический метод

Returns the imaginary vector part of the complex vector c.
public static Im ( this c ) : double[]
c this A vector of complex numbers.
Результат double[]

IsEqual() публичный статический метод

Compares two matrices for equality, considering an acceptance threshold.
public static IsEqual ( this objA, Complex objB, double threshold ) : bool
objA this
objB Complex
threshold double
Результат bool

Magnitude() публичный статический метод

Gets the magnitude of every complex number in a matrix.
public static Magnitude ( this c ) : ].double[
c this
Результат ].double[

Magnitude() публичный статический метод

Gets the magnitude of every complex number in an array.
public static Magnitude ( this c ) : double[]
c this
Результат double[]

Multiply() публичный статический метод

Elementwise multiplication of two complex vectors.
public static Multiply ( this a, Complex b ) : Complex[]
a this
b Complex
Результат Complex[]

Phase() публичный статический метод

Gets the phase of every complex number in an array.
public static Phase ( this c ) : double[]
c this
Результат double[]

Range() публичный статический метод

Gets the range of the magnitude values in a complex number vector.
public static Range ( this array ) : DoubleRange
array this A complex number vector.
Результат AForge.DoubleRange

Re() публичный статический метод

Returns the real matrix part of the complex matrix c.
public static Re ( this c ) : ].double[
c this A matrix of complex numbers.
Результат ].double[

Re() публичный статический метод

Returns the real vector part of the complex vector c.
public static Re ( this c ) : double[]
c this A vector of complex numbers.
Результат double[]

Sum() публичный статический метод

Computes the sum of an array of complex numbers.
public static Sum ( this x ) : Complex
x this
Результат Complex

ToArray() публичный статический метод

Converts a complex number to a matrix of scalar values in which the first column contains the real values and the second column contains the imaginary values.
public static ToArray ( this c ) : ].double[
c this An array of complex numbers.
Результат ].double[

ToComplex() публичный статический метод

Converts a vector of real numbers to complex numbers.
public static ToComplex ( this real ) : Complex[]
real this The real numbers to be converted.
Результат Complex[]

ToComplex() публичный статический метод

Combines a vector of real and a vector of imaginary numbers to form complex numbers.
public static ToComplex ( this real, double imag ) : Complex[]
real this The real part of the complex numbers.
imag double The imaginary part of the complex numbers
Результат Complex[]