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,Pow<T>,PowFloatingPoint,SetOne,SetZero,Sub<T>,ValueEquals<T>,Type<T>
- Direct Known Subclasses:
AbstractVolatileNativeRealType,VolatileRealType
public abstract class AbstractVolatileRealType<R extends RealType<R>,T extends AbstractVolatileRealType<R,T>> extends Volatile<R> implements RealType<T>
Abstract base class forVolatileRealTypes that wrapRealType.
-
-
Constructor Summary
Constructors Constructor Description AbstractVolatileRealType(R t, boolean valid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(T c)intcompareTo(T o)voidcomplexConjugate()voiddec()voiddiv(T c)booleanequals(java.lang.Object obj)intgetBitsPerPixel()doublegetImaginaryDouble()floatgetImaginaryFloat()doublegetMaxValue()doublegetMinIncrement()doublegetMinValue()doublegetPhaseDouble()floatgetPhaseFloat()doublegetPowerDouble()floatgetPowerFloat()doublegetRealDouble()floatgetRealFloat()inthashCode()voidinc()voidmul(double c)voidmul(float c)voidmul(T c)voidpow(double power)voidpow(T c)voidset(T c)Sets the value of anotherType.voidsetComplexNumber(double r, double i)voidsetComplexNumber(float r, float i)voidsetImaginary(double f)voidsetImaginary(float f)voidsetOne()voidsetReal(double f)voidsetReal(float f)voidsetZero()voidsub(T c)booleanvalueEquals(T other)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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:
getRealDoublein interfaceComplexType<R extends RealType<R>>
-
getRealFloat
public float getRealFloat()
- Specified by:
getRealFloatin interfaceComplexType<R extends RealType<R>>
-
getImaginaryDouble
public double getImaginaryDouble()
- Specified by:
getImaginaryDoublein interfaceComplexType<R extends RealType<R>>
-
getImaginaryFloat
public float getImaginaryFloat()
- Specified by:
getImaginaryFloatin interfaceComplexType<R extends RealType<R>>
-
setReal
public void setReal(float f)
- Specified by:
setRealin interfaceComplexType<R extends RealType<R>>
-
setReal
public void setReal(double f)
- Specified by:
setRealin interfaceComplexType<R extends RealType<R>>
-
setImaginary
public void setImaginary(float f)
- Specified by:
setImaginaryin interfaceComplexType<R extends RealType<R>>
-
setImaginary
public void setImaginary(double f)
- Specified by:
setImaginaryin interfaceComplexType<R extends RealType<R>>
-
setComplexNumber
public void setComplexNumber(float r, float i)- Specified by:
setComplexNumberin interfaceComplexType<R extends RealType<R>>
-
setComplexNumber
public void setComplexNumber(double r, double i)- Specified by:
setComplexNumberin interfaceComplexType<R extends RealType<R>>
-
getPowerFloat
public float getPowerFloat()
- Specified by:
getPowerFloatin interfaceComplexType<R extends RealType<R>>
-
getPowerDouble
public double getPowerDouble()
- Specified by:
getPowerDoublein interfaceComplexType<R extends RealType<R>>
-
getPhaseFloat
public float getPhaseFloat()
- Specified by:
getPhaseFloatin interfaceComplexType<R extends RealType<R>>
-
getPhaseDouble
public double getPhaseDouble()
- Specified by:
getPhaseDoublein interfaceComplexType<R extends RealType<R>>
-
complexConjugate
public void complexConjugate()
- Specified by:
complexConjugatein interfaceComplexType<R extends RealType<R>>
-
getMaxValue
public double getMaxValue()
- Specified by:
getMaxValuein interfaceRealType<R extends RealType<R>>
-
getMinValue
public double getMinValue()
- Specified by:
getMinValuein interfaceRealType<R extends RealType<R>>
-
getMinIncrement
public double getMinIncrement()
- Specified by:
getMinIncrementin interfaceRealType<R extends RealType<R>>
-
getBitsPerPixel
public int getBitsPerPixel()
- Specified by:
getBitsPerPixelin interfaceRealType<R extends RealType<R>>
-
pow
public void pow(double power)
- Specified by:
powin interfacePowFloatingPoint
-
mul
public void mul(float c)
- Specified by:
mulin interfaceMulFloatingPoint
-
mul
public void mul(double c)
- Specified by:
mulin interfaceMulFloatingPoint
-
compareTo
public int compareTo(T o)
-
valueEquals
public boolean valueEquals(T other)
- Specified by:
valueEqualsin interfaceValueEquals<R extends RealType<R>>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-