Package net.imglib2.type.numeric.complex
Class AbstractComplexType<T extends AbstractComplexType<T>>
java.lang.Object
net.imglib2.type.numeric.complex.AbstractComplexType<T>
- All Implemented Interfaces:
ComplexType<T>,NumericType<T>,Add<T>,Div<T>,Mul<T>,MulFloatingPoint,SetOne,SetZero,Sub<T>,ValueEquals<T>,Type<T>
- Direct Known Subclasses:
AbstractRealType,ComplexDoubleType,ComplexFloatType
public abstract class AbstractComplexType<T extends AbstractComplexType<T>>
extends Object
implements ComplexType<T>
TODO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidbooleandoublefloatdoublefloatinthashCode()voidmul(double c) voidmul(float c) voidvoidSets the value of anotherType.voidsetComplexNumber(double r, double i) voidsetComplexNumber(float r, float i) voidsetOne()voidsetZero()voidtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.imglib2.type.numeric.ComplexType
getImaginaryDouble, getImaginaryFloat, getRealDouble, getRealFloat, setImaginary, setImaginary, setReal, setRealMethods inherited from interface net.imglib2.type.Type
copy, createVariableMethods inherited from interface net.imglib2.type.operators.ValueEquals
valueEquals
-
Constructor Details
-
AbstractComplexType
public AbstractComplexType()
-
-
Method Details
-
set
Description copied from interface:TypeSets the value of anotherType.- Specified by:
setin interfaceType<T extends AbstractComplexType<T>>- Parameters:
c- the new value
-
mul
public void mul(float c) - Specified by:
mulin interfaceMulFloatingPoint
-
mul
public void mul(double c) - Specified by:
mulin interfaceMulFloatingPoint
-
add
- Specified by:
addin interfaceAdd<T extends AbstractComplexType<T>>
-
div
- Specified by:
divin interfaceDiv<T extends AbstractComplexType<T>>
-
mul
- Specified by:
mulin interfaceMul<T extends AbstractComplexType<T>>
-
sub
- Specified by:
subin interfaceSub<T extends AbstractComplexType<T>>
-
complexConjugate
public void complexConjugate()- Specified by:
complexConjugatein interfaceComplexType<T extends AbstractComplexType<T>>
-
getPowerFloat
public float getPowerFloat()- Specified by:
getPowerFloatin interfaceComplexType<T extends AbstractComplexType<T>>
-
getPowerDouble
public double getPowerDouble()- Specified by:
getPowerDoublein interfaceComplexType<T extends AbstractComplexType<T>>
-
getPhaseFloat
public float getPhaseFloat()- Specified by:
getPhaseFloatin interfaceComplexType<T extends AbstractComplexType<T>>
-
getPhaseDouble
public double getPhaseDouble()- Specified by:
getPhaseDoublein interfaceComplexType<T extends AbstractComplexType<T>>
-
setOne
public void setOne() -
setZero
public void setZero() -
setComplexNumber
public void setComplexNumber(float r, float i) - Specified by:
setComplexNumberin interfaceComplexType<T extends AbstractComplexType<T>>
-
setComplexNumber
public void setComplexNumber(double r, double i) - Specified by:
setComplexNumberin interfaceComplexType<T extends AbstractComplexType<T>>
-
equals
-
hashCode
public int hashCode() -
toString
-