Package | Description |
---|---|
gov.sandia.cognition.math |
Provides classes for mathematical computation.
|
gov.sandia.cognition.math.matrix |
Provides interfaces and classes for linear algebra.
|
gov.sandia.cognition.math.matrix.custom |
Provides a custom linear algebra package implementation for both dense
and sparse classes.
|
gov.sandia.cognition.math.matrix.decomposition |
Provides matrix decompositions.
|
gov.sandia.cognition.math.matrix.mtj |
Provides a linear algebra package implementation wrapper using the Matrix
Toolkits for Java (MTJ) library.
|
gov.sandia.cognition.math.signals |
Provides mathematical signal processing methods.
|
Modifier and Type | Method and Description |
---|---|
ComplexNumber |
ComplexNumber.clone()
Returns a deep copy of this
|
ComplexNumber |
ComplexNumber.computeExponent()
Computes the natural-base exponent of the complex number, such that
this = log(exp(this)) = exp(log(this))
|
ComplexNumber |
ComplexNumber.computeNaturalLogarithm()
Computes the natural-base logarithm of the complex number, such that
this = log(exp(this)) = exp(log(this))
|
ComplexNumber |
ComplexNumber.conjugate()
Switches the sign of the imaginary part of this complex number.
|
ComplexNumber |
ComplexNumber.divide(ComplexNumber other)
Arithmetic division of this by other using polar coordinates:
magnitude = this.magnitude / other.magnitude
phase = this.phase - other.phase
answer.realPart = magnitude * cos( phase )
answer.imaginaryPart = magnitude * sin( phase )
|
ComplexNumber |
ComplexNumber.dividedBy(ComplexNumber other)
Deprecated.
Use divide.
|
ComplexNumber |
ComplexNumber.times(ComplexNumber other)
Arithmetic multiplication of this and other using polar coordinates:
magnitude = this.magnitude * other.magnitude
phase = this.phase + other.phase
answer.realPart = magnitude * cos( phase )
answer.imaginaryPart = magnitude * sin( phase )
|
Modifier and Type | Method and Description |
---|---|
ComplexNumber |
ComplexNumber.divide(ComplexNumber other)
Arithmetic division of this by other using polar coordinates:
magnitude = this.magnitude / other.magnitude
phase = this.phase - other.phase
answer.realPart = magnitude * cos( phase )
answer.imaginaryPart = magnitude * sin( phase )
|
ComplexNumber |
ComplexNumber.dividedBy(ComplexNumber other)
Deprecated.
Use divide.
|
void |
ComplexNumber.dividedByEquals(ComplexNumber other)
Deprecated.
Use divideEquals.
|
void |
ComplexNumber.divideEquals(ComplexNumber other)
Inline arithmetic division of this by other:
this.magnitude /= other.magnitude
this.phase -= other.phase
|
void |
ComplexNumber.dotTimesEquals(ComplexNumber other) |
boolean |
ComplexNumber.equals(ComplexNumber other,
double effectiveZero) |
void |
ComplexNumber.minusEquals(ComplexNumber other) |
void |
ComplexNumber.plusEquals(ComplexNumber number)
Inline addition between this and the complex number
|
void |
ComplexNumber.scaledPlusEquals(double scaleFactor,
ComplexNumber other) |
ComplexNumber |
ComplexNumber.times(ComplexNumber other)
Arithmetic multiplication of this and other using polar coordinates:
magnitude = this.magnitude * other.magnitude
phase = this.phase + other.phase
answer.realPart = magnitude * cos( phase )
answer.imaginaryPart = magnitude * sin( phase )
|
void |
ComplexNumber.timesEquals(ComplexNumber other)
Inline arithmetic multiplication of this and other:
this.magnitude *= other.magnitude
this.phase += other.phase
|
Constructor and Description |
---|
ComplexNumber(ComplexNumber other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
ComplexNumber |
Matrix.logDeterminant()
Computes the natural logarithm of the determinant of
this . |
Modifier and Type | Method and Description |
---|---|
ComplexNumber |
DenseMatrix.logDeterminant() |
ComplexNumber |
DiagonalMatrix.logDeterminant() |
ComplexNumber |
SparseMatrix.logDeterminant()
Computes the natural logarithm of the determinant of
this . |
Modifier and Type | Method and Description |
---|---|
ComplexNumber |
AbstractEigenDecomposition.getEigenValue(int index)
gets the indexed eigenvalue
|
ComplexNumber |
EigenDecomposition.getEigenValue(int index)
Gets the complex-valued (potentially real and/or imaginary)
eigenvalue specified by the index "index"
|
ComplexNumber[] |
AbstractEigenDecomposition.getEigenValues()
Getter for eigenValues
|
ComplexNumber[] |
EigenDecomposition.getEigenValues()
Returns the array of complex-valued eigenvalues, the eigenvalues may be
sorted in descending order of the magnitude of the eigenvalue, or they
may be unsorted, depending on the specific implementation used
|
ComplexNumber |
AbstractEigenDecomposition.getLogDeterminant()
Computes the natural logarithm determinant from the collection of
eigenvalues
|
ComplexNumber |
EigenDecomposition.getLogDeterminant()
Computes the natural logarithm determinant from the collection of
eigenvalues
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractEigenDecomposition.setEigenDecomposition(ComplexNumber[] eigenValues,
Matrix eigenVectorsRealPart,
Matrix eigenVectorsImaginaryPart,
boolean sort)
Sets the eigen decomposition for this
|
protected void |
AbstractEigenDecomposition.setEigenValues(ComplexNumber[] eigenValues)
setter for eigenValues
|
protected void |
AbstractEigenDecomposition.setUnsortedEigenDecomposition(ComplexNumber[] eigenValues,
Matrix eigenVectorsRealPart,
Matrix eigenVectorsImaginaryPart)
Creates a new eigendecomposition using the given eigenvalues and
eigenvectors...
|
protected void |
AbstractEigenDecomposition.sortAndSetEigenDecomposition(ComplexNumber[] eigenValues,
Matrix eigenVectorsRealPart,
Matrix eigenVectorsImaginaryPart)
Sorts the eigendecomposition in descending order of the value of the
magnitudes of the eigenvalues
|
Constructor and Description |
---|
AbstractEigenDecomposition(ComplexNumber[] eigenValues,
Matrix eigenVectorsRealPart,
Matrix eigenVectorsImaginaryPart)
Stores the given eigenvalues and eigenvectors internally, the eigenvalues
and eigenvectors will not be sorted.
|
AbstractEigenDecomposition(ComplexNumber[] eigenValues,
Matrix eigenVectorsRealPart,
Matrix eigenVectorsImaginaryPart,
boolean sort)
Creates a new eigendecomposition using the given eigenvalues and
eigenvectors...
|
Modifier and Type | Method and Description |
---|---|
ComplexNumber |
AbstractMTJMatrix.logDeterminant() |
ComplexNumber |
DiagonalMatrixMTJ.logDeterminant() |
Modifier and Type | Method and Description |
---|---|
protected static ComplexNumber[] |
FourierTransform.cooleyTukeyFFT(java.util.ArrayList<ComplexNumber> data)
Computes the Cooley-Tukey Radix-2 Fast Fourier Transform (FFT).
|
static ComplexNumber[] |
FourierTransform.discreteFourierTransform(java.util.ArrayList<java.lang.Double> data)
Computes the brute-force discrete Fourier transform of the input data.
|
protected static ComplexNumber[] |
FourierTransform.discreteFourierTransformComplex(java.util.ArrayList<ComplexNumber> data)
Computes the brute-force discrete Fourier transform of the input data.
|
Modifier and Type | Method and Description |
---|---|
protected static java.util.ArrayList<ComplexNumber> |
FourierTransform.convertToComplex(java.util.Collection<java.lang.Double> data)
Converts the Collection of real data to complex numbers
|
java.util.List<ComplexNumber> |
FourierTransform.evaluate(java.util.Collection<java.lang.Double> data)
Computes the Fast Fourier Transform of the given input data using
the Cooley-Tukey Radix-2 FFT, with brute-force DFT computation on
odd subsequence computation.
|
Modifier and Type | Method and Description |
---|---|
protected static ComplexNumber[] |
FourierTransform.cooleyTukeyFFT(java.util.ArrayList<ComplexNumber> data)
Computes the Cooley-Tukey Radix-2 Fast Fourier Transform (FFT).
|
protected static ComplexNumber[] |
FourierTransform.discreteFourierTransformComplex(java.util.ArrayList<ComplexNumber> data)
Computes the brute-force discrete Fourier transform of the input data.
|
java.util.ArrayList<java.lang.Double> |
FourierTransform.Inverse.evaluate(java.util.Collection<ComplexNumber> input) |
static java.util.ArrayList<java.lang.Double> |
FourierTransform.inverse(java.util.Collection<ComplexNumber> transformCoefficients)
Static function that inverts a Fourier transform.
|