Package net.imglib2.type.volatiles
Class AbstractVolatileRealType<R extends RealType<R>,T extends AbstractVolatileRealType<R,T>>
- java.lang.Object
-
- net.imglib2.Volatile<R>
-
- net.imglib2.type.volatiles.AbstractVolatileRealType<R,T>
-
- Type Parameters:
R
- wrappedRealType
.T
- type of derived concrete class.
- All Implemented Interfaces:
java.lang.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:
VolatileRealType
public abstract class AbstractVolatileRealType<R extends RealType<R>,T extends AbstractVolatileRealType<R,T>> extends Volatile<R> implements RealType<T>
Abstract base class forVolatileRealType
s that wrapRealType
.- Author:
- Tobias Pietzsch, Stephan Saalfeld
-
-
Constructor Summary
Constructors Constructor Description AbstractVolatileRealType(R t, boolean valid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T c)
int
compareTo(T o)
void
complexConjugate()
void
dec()
void
div(T c)
int
getBitsPerPixel()
double
getImaginaryDouble()
float
getImaginaryFloat()
double
getMaxValue()
double
getMinIncrement()
double
getMinValue()
double
getPhaseDouble()
float
getPhaseFloat()
double
getPowerDouble()
float
getPowerFloat()
double
getRealDouble()
float
getRealFloat()
void
inc()
void
mul(double c)
void
mul(float c)
void
mul(T c)
void
set(T c)
Sets the value of anotherType
.void
setComplexNumber(double r, double i)
void
setComplexNumber(float r, float i)
void
setImaginary(double f)
void
setImaginary(float f)
void
setOne()
void
setReal(double f)
void
setReal(float f)
void
setZero()
void
sub(T c)
boolean
valueEquals(T other)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.imglib2.type.Type
copy, createVariable
-
-
-
-
Constructor Detail
-
AbstractVolatileRealType
public AbstractVolatileRealType(R t, boolean valid)
-
-
Method Detail
-
getRealDouble
public double getRealDouble()
- Specified by:
getRealDouble
in interfaceComplexType<R extends RealType<R>>
-
getRealFloat
public float getRealFloat()
- Specified by:
getRealFloat
in interfaceComplexType<R extends RealType<R>>
-
getImaginaryDouble
public double getImaginaryDouble()
- Specified by:
getImaginaryDouble
in interfaceComplexType<R extends RealType<R>>
-
getImaginaryFloat
public float getImaginaryFloat()
- Specified by:
getImaginaryFloat
in interfaceComplexType<R extends RealType<R>>
-
setReal
public void setReal(float f)
- Specified by:
setReal
in interfaceComplexType<R extends RealType<R>>
-
setReal
public void setReal(double f)
- Specified by:
setReal
in interfaceComplexType<R extends RealType<R>>
-
setImaginary
public void setImaginary(float f)
- Specified by:
setImaginary
in interfaceComplexType<R extends RealType<R>>
-
setImaginary
public void setImaginary(double f)
- Specified by:
setImaginary
in interfaceComplexType<R extends RealType<R>>
-
setComplexNumber
public void setComplexNumber(float r, float i)
- Specified by:
setComplexNumber
in interfaceComplexType<R extends RealType<R>>
-
setComplexNumber
public void setComplexNumber(double r, double i)
- Specified by:
setComplexNumber
in interfaceComplexType<R extends RealType<R>>
-
getPowerFloat
public float getPowerFloat()
- Specified by:
getPowerFloat
in interfaceComplexType<R extends RealType<R>>
-
getPowerDouble
public double getPowerDouble()
- Specified by:
getPowerDouble
in interfaceComplexType<R extends RealType<R>>
-
getPhaseFloat
public float getPhaseFloat()
- Specified by:
getPhaseFloat
in interfaceComplexType<R extends RealType<R>>
-
getPhaseDouble
public double getPhaseDouble()
- Specified by:
getPhaseDouble
in interfaceComplexType<R extends RealType<R>>
-
complexConjugate
public void complexConjugate()
- Specified by:
complexConjugate
in interfaceComplexType<R extends RealType<R>>
-
compareTo
public int compareTo(T o)
-
getMaxValue
public double getMaxValue()
- Specified by:
getMaxValue
in interfaceRealType<R extends RealType<R>>
-
getMinValue
public double getMinValue()
- Specified by:
getMinValue
in interfaceRealType<R extends RealType<R>>
-
getMinIncrement
public double getMinIncrement()
- Specified by:
getMinIncrement
in interfaceRealType<R extends RealType<R>>
-
getBitsPerPixel
public int getBitsPerPixel()
- Specified by:
getBitsPerPixel
in interfaceRealType<R extends RealType<R>>
-
mul
public void mul(float c)
- Specified by:
mul
in interfaceMulFloatingPoint
-
mul
public void mul(double c)
- Specified by:
mul
in interfaceMulFloatingPoint
-
valueEquals
public boolean valueEquals(T other)
- Specified by:
valueEquals
in interfaceValueEquals<R extends RealType<R>>
-
-