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 TypeMethodDescriptionvoid
void
void
boolean
double
float
double
float
int
hashCode()
void
mul
(double c) void
mul
(float c) void
void
Sets the value of anotherType
.void
setComplexNumber
(double r, double i) void
setComplexNumber
(float r, float i) void
setOne()
void
setZero()
void
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
-
Constructor Details
-
AbstractComplexType
public AbstractComplexType()
-
-
Method Details
-
set
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
-
add
- Specified by:
add
in interfaceAdd<T extends AbstractComplexType<T>>
-
div
- Specified by:
div
in interfaceDiv<T extends AbstractComplexType<T>>
-
mul
- Specified by:
mul
in interfaceMul<T extends AbstractComplexType<T>>
-
sub
- Specified by:
sub
in interfaceSub<T extends AbstractComplexType<T>>
-
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>>
-
setOne
public void setOne() -
setZero
public void setZero() -
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
-
hashCode
public int hashCode() -
toString
-