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,Pow<T>,PowFloatingPoint,SetOne,SetZero,Sub<T>,ValueEquals<T>,Type<T>
- Direct Known Subclasses:
AbstractRealType,ComplexDoubleType,ComplexFloatType
public abstract class AbstractComplexType<T extends AbstractComplexType<T>> extends java.lang.Object implements ComplexType<T>
TODO
-
-
Constructor Summary
Constructors Constructor Description AbstractComplexType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(T c)voidcomplexConjugate()voiddiv(T c)booleanequals(java.lang.Object obj)doublegetPhaseDouble()floatgetPhaseFloat()doublegetPowerDouble()floatgetPowerFloat()inthashCode()voidmul(double c)voidmul(float c)voidmul(T t)voidpow(double power)voidpow(T c)voidset(T c)Sets the value of anotherType.voidsetComplexNumber(double r, double i)voidsetComplexNumber(float r, float i)voidsetOne()voidsetZero()voidsub(T c)java.lang.StringtoString()booleanvalueEquals(T other)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.type.numeric.ComplexType
getImaginaryDouble, getImaginaryFloat, getRealDouble, getRealFloat, setImaginary, setImaginary, setReal, setReal
-
Methods inherited from interface net.imglib2.type.Type
copy, createVariable
-
-
-
-
Method Detail
-
set
public void set(T c)
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
-
pow
public void pow(double power)
- Specified by:
powin interfacePowFloatingPoint
-
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>>
-
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>>
-
valueEquals
public boolean valueEquals(T other)
- Specified by:
valueEqualsin interfaceValueEquals<T extends AbstractComplexType<T>>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-