C# Class 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.
ファイルを表示 Open project: accord-net/framework

Public Methods

Method Description
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.

Private Methods

Method Description
SquaredMagnitude ( this value ) : double

Method Details

Abs() public static method

Computes the absolute value of an array of complex numbers.
public static Abs ( this x ) : Complex[]
x this
return Complex[]

Im() public static method

Returns the imaginary matrix part of the complex matrix c.
public static Im ( this c ) : ].double[
c this A matrix of complex numbers.
return ].double[

Im() public static method

Returns the imaginary vector part of the complex vector c.
public static Im ( this c ) : double[]
c this A vector of complex numbers.
return double[]

IsEqual() public static method

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
return bool

Magnitude() public static method

Gets the magnitude of every complex number in a matrix.
public static Magnitude ( this c ) : ].double[
c this
return ].double[

Magnitude() public static method

Gets the magnitude of every complex number in an array.
public static Magnitude ( this c ) : double[]
c this
return double[]

Multiply() public static method

Elementwise multiplication of two complex vectors.
public static Multiply ( this a, Complex b ) : Complex[]
a this
b Complex
return Complex[]

Phase() public static method

Gets the phase of every complex number in an array.
public static Phase ( this c ) : double[]
c this
return double[]

Range() public static method

Gets the range of the magnitude values in a complex number vector.
public static Range ( this array ) : DoubleRange
array this A complex number vector.
return AForge.DoubleRange

Re() public static method

Returns the real matrix part of the complex matrix c.
public static Re ( this c ) : ].double[
c this A matrix of complex numbers.
return ].double[

Re() public static method

Returns the real vector part of the complex vector c.
public static Re ( this c ) : double[]
c this A vector of complex numbers.
return double[]

Sum() public static method

Computes the sum of an array of complex numbers.
public static Sum ( this x ) : Complex
x this
return Complex

ToArray() public static method

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.
return ].double[

ToComplex() public static method

Converts a vector of real numbers to complex numbers.
public static ToComplex ( this real ) : Complex[]
real this The real numbers to be converted.
return Complex[]

ToComplex() public static method

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
return Complex[]