Package net.imglib2.type.numeric.real
Class AbstractRealType<T extends AbstractRealType<T>>
java.lang.Object
net.imglib2.type.numeric.complex.AbstractComplexType<T>
net.imglib2.type.numeric.real.AbstractRealType<T>
- All Implemented Interfaces:
Comparable<T>
,ComplexType<T>
,NumericType<T>
,RealType<T>
,Add<T>
,Div<T>
,Mul<T>
,MulFloatingPoint
,SetOne
,SetZero
,Sub<T>
,ValueEquals<T>
,Type<T>
- Direct Known Subclasses:
AbstractIntegerType
,DoubleType
,FloatType
public abstract class AbstractRealType<T extends AbstractRealType<T>>
extends AbstractComplexType<T>
implements RealType<T>
TODO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
void
dec()
void
boolean
double
float
double
float
double
float
int
hashCode()
void
inc()
void
mul
(double c) void
mul
(float c) void
void
Sets the value of anotherType
.void
setImaginary
(double complex) void
setImaginary
(float complex) void
setOne()
void
setZero()
void
toString()
Methods inherited from class net.imglib2.type.numeric.complex.AbstractComplexType
complexConjugate, setComplexNumber, setComplexNumber
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.imglib2.type.numeric.ComplexType
complexConjugate, getRealDouble, getRealFloat, setComplexNumber, setComplexNumber, setReal, setReal
Methods inherited from interface net.imglib2.type.numeric.RealType
getBitsPerPixel, getMaxValue, getMinIncrement, getMinValue
Methods inherited from interface net.imglib2.type.Type
copy, createVariable
Methods inherited from interface net.imglib2.type.operators.ValueEquals
valueEquals
-
Constructor Details
-
AbstractRealType
public AbstractRealType()
-
-
Method Details
-
getImaginaryFloat
public float getImaginaryFloat()- Specified by:
getImaginaryFloat
in interfaceComplexType<T extends AbstractRealType<T>>
-
getImaginaryDouble
public double getImaginaryDouble()- Specified by:
getImaginaryDouble
in interfaceComplexType<T extends AbstractRealType<T>>
-
setImaginary
public void setImaginary(float complex) - Specified by:
setImaginary
in interfaceComplexType<T extends AbstractRealType<T>>
-
setImaginary
public void setImaginary(double complex) - Specified by:
setImaginary
in interfaceComplexType<T extends AbstractRealType<T>>
-
inc
public void inc()- Specified by:
inc
in interfaceRealType<T extends AbstractRealType<T>>
-
dec
public void dec()- Specified by:
dec
in interfaceRealType<T extends AbstractRealType<T>>
-
set
Description copied from interface:Type
Sets the value of anotherType
.- Specified by:
set
in interfaceType<T extends AbstractRealType<T>>
- Overrides:
set
in classAbstractComplexType<T extends AbstractRealType<T>>
- Parameters:
c
- the new value
-
mul
public void mul(float c) - Specified by:
mul
in interfaceMulFloatingPoint
- Overrides:
mul
in classAbstractComplexType<T extends AbstractRealType<T>>
-
mul
public void mul(double c) - Specified by:
mul
in interfaceMulFloatingPoint
- Overrides:
mul
in classAbstractComplexType<T extends AbstractRealType<T>>
-
add
- Specified by:
add
in interfaceAdd<T extends AbstractRealType<T>>
- Overrides:
add
in classAbstractComplexType<T extends AbstractRealType<T>>
-
div
- Specified by:
div
in interfaceDiv<T extends AbstractRealType<T>>
- Overrides:
div
in classAbstractComplexType<T extends AbstractRealType<T>>
-
mul
- Specified by:
mul
in interfaceMul<T extends AbstractRealType<T>>
- Overrides:
mul
in classAbstractComplexType<T extends AbstractRealType<T>>
-
sub
- Specified by:
sub
in interfaceSub<T extends AbstractRealType<T>>
- Overrides:
sub
in classAbstractComplexType<T extends AbstractRealType<T>>
-
setZero
public void setZero()- Specified by:
setZero
in interfaceSetZero
- Overrides:
setZero
in classAbstractComplexType<T extends AbstractRealType<T>>
-
setOne
public void setOne()- Specified by:
setOne
in interfaceSetOne
- Overrides:
setOne
in classAbstractComplexType<T extends AbstractRealType<T>>
-
equals
- Overrides:
equals
in classAbstractComplexType<T extends AbstractRealType<T>>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractComplexType<T extends AbstractRealType<T>>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<T extends AbstractRealType<T>>
-
getPowerFloat
public float getPowerFloat()- Specified by:
getPowerFloat
in interfaceComplexType<T extends AbstractRealType<T>>
- Overrides:
getPowerFloat
in classAbstractComplexType<T extends AbstractRealType<T>>
-
getPowerDouble
public double getPowerDouble()- Specified by:
getPowerDouble
in interfaceComplexType<T extends AbstractRealType<T>>
- Overrides:
getPowerDouble
in classAbstractComplexType<T extends AbstractRealType<T>>
-
getPhaseFloat
public float getPhaseFloat()- Specified by:
getPhaseFloat
in interfaceComplexType<T extends AbstractRealType<T>>
- Overrides:
getPhaseFloat
in classAbstractComplexType<T extends AbstractRealType<T>>
-
getPhaseDouble
public double getPhaseDouble()- Specified by:
getPhaseDouble
in interfaceComplexType<T extends AbstractRealType<T>>
- Overrides:
getPhaseDouble
in classAbstractComplexType<T extends AbstractRealType<T>>
-
toString
- Overrides:
toString
in classAbstractComplexType<T extends AbstractRealType<T>>
-