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 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 void
add(T c)
void
complexConjugate()
void
div(T c)
boolean
equals(java.lang.Object o)
double
getPhaseDouble()
float
getPhaseFloat()
double
getPowerDouble()
float
getPowerFloat()
int
hashCode()
void
mul(double c)
void
mul(float c)
void
mul(T t)
void
set(T c)
Sets the value of anotherType
.void
setComplexNumber(double r, double i)
void
setComplexNumber(float r, float i)
void
setOne()
void
setZero()
void
sub(T c)
java.lang.String
toString()
-
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
-
Methods inherited from interface net.imglib2.type.operators.ValueEquals
valueEquals
-
-
-
-
Method Detail
-
set
public void set(T c)
Description copied from interface:Type
Sets the value of anotherType
.- Specified by:
set
in interfaceType<T extends AbstractComplexType<T>>
- Parameters:
c
- the new value
-
mul
public void mul(float c)
- Specified by:
mul
in interfaceMulFloatingPoint
-
mul
public void mul(double c)
- Specified by:
mul
in interfaceMulFloatingPoint
-
complexConjugate
public void complexConjugate()
- Specified by:
complexConjugate
in interfaceComplexType<T extends AbstractComplexType<T>>
-
getPowerFloat
public float getPowerFloat()
- Specified by:
getPowerFloat
in interfaceComplexType<T extends AbstractComplexType<T>>
-
getPowerDouble
public double getPowerDouble()
- Specified by:
getPowerDouble
in interfaceComplexType<T extends AbstractComplexType<T>>
-
getPhaseFloat
public float getPhaseFloat()
- Specified by:
getPhaseFloat
in interfaceComplexType<T extends AbstractComplexType<T>>
-
getPhaseDouble
public double getPhaseDouble()
- Specified by:
getPhaseDouble
in interfaceComplexType<T extends AbstractComplexType<T>>
-
setComplexNumber
public void setComplexNumber(float r, float i)
- Specified by:
setComplexNumber
in interfaceComplexType<T extends AbstractComplexType<T>>
-
setComplexNumber
public void setComplexNumber(double r, double i)
- Specified by:
setComplexNumber
in interfaceComplexType<T extends AbstractComplexType<T>>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-