public abstract class AbstractIntegerBitType<T extends AbstractIntegerBitType<T>> extends AbstractBitType<T> implements IntegerType<T>
dataAccess, i, img, nBits
Constructor and Description |
---|
AbstractIntegerBitType(NativeImg<?,? extends LongAccess> bitStorage,
int nBits) |
Modifier and Type | Method and Description |
---|---|
void |
add(T t) |
int |
compareTo(T other) |
void |
complexConjugate() |
void |
dec() |
void |
div(T t) |
boolean |
equals(Object obj) |
abstract long |
get() |
BigInteger |
getBigInteger() |
int |
getBitsPerPixel() |
double |
getImaginaryDouble() |
float |
getImaginaryFloat() |
int |
getInteger() |
long |
getIntegerLong() |
double |
getMaxValue()
The maximum value that can be stored is
Math.pow(2, nBits) -1 . |
double |
getMinIncrement() |
double |
getMinValue() |
double |
getPhaseDouble() |
float |
getPhaseFloat() |
double |
getPowerDouble() |
float |
getPowerFloat() |
double |
getRealDouble() |
float |
getRealFloat() |
int |
hashCode() |
void |
inc() |
void |
mul(double c) |
void |
mul(float c) |
void |
mul(T t) |
void |
pow(double power) |
void |
pow(T t) |
abstract void |
set(long value) |
void |
set(T c)
Sets the value of another
Type . |
void |
setBigInteger(BigInteger b) |
void |
setComplexNumber(double r,
double i) |
void |
setComplexNumber(float r,
float i) |
void |
setImaginary(double complex) |
void |
setImaginary(float complex) |
void |
setInteger(int f) |
void |
setInteger(long f) |
void |
setOne() |
void |
setReal(double real) |
void |
setReal(float real) |
void |
setZero() |
void |
sub(T t) |
String |
toString() |
boolean |
valueEquals(T t)
Default test at long precision.
|
getEntitiesPerPixel, getNativeTypeFactory, index, updateContainer
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy, createVariable
decIndex, decIndex, duplicateTypeOnSameNativeImg, getIndex, incIndex, incIndex, updateIndex
public AbstractIntegerBitType(NativeImg<?,? extends LongAccess> bitStorage, int nBits)
public abstract long get()
public abstract void set(long value)
public int getBitsPerPixel()
getBitsPerPixel
in interface RealType<T extends AbstractIntegerBitType<T>>
public double getMinIncrement()
getMinIncrement
in interface RealType<T extends AbstractIntegerBitType<T>>
public void mul(float c)
mul
in interface MulFloatingPoint
public void mul(double c)
mul
in interface MulFloatingPoint
public float getRealFloat()
getRealFloat
in interface ComplexType<T extends AbstractIntegerBitType<T>>
public double getRealDouble()
getRealDouble
in interface ComplexType<T extends AbstractIntegerBitType<T>>
public void setReal(float real)
setReal
in interface ComplexType<T extends AbstractIntegerBitType<T>>
public void setReal(double real)
setReal
in interface ComplexType<T extends AbstractIntegerBitType<T>>
public int getInteger()
getInteger
in interface IntegerType<T extends AbstractIntegerBitType<T>>
public long getIntegerLong()
getIntegerLong
in interface IntegerType<T extends AbstractIntegerBitType<T>>
public BigInteger getBigInteger()
getBigInteger
in interface IntegerType<T extends AbstractIntegerBitType<T>>
public void setInteger(int f)
setInteger
in interface IntegerType<T extends AbstractIntegerBitType<T>>
public void setInteger(long f)
setInteger
in interface IntegerType<T extends AbstractIntegerBitType<T>>
public void setBigInteger(BigInteger b)
setBigInteger
in interface IntegerType<T extends AbstractIntegerBitType<T>>
public double getMaxValue()
Math.pow(2, nBits) -1
.getMaxValue
in interface RealType<T extends AbstractIntegerBitType<T>>
public double getMinValue()
getMinValue
in interface RealType<T extends AbstractIntegerBitType<T>>
public void inc()
inc
in interface RealType<T extends AbstractIntegerBitType<T>>
public void dec()
dec
in interface RealType<T extends AbstractIntegerBitType<T>>
public void pow(double power)
pow
in interface PowFloatingPoint
public void set(T c)
Type
Type
.set
in interface Type<T extends AbstractIntegerBitType<T>>
c
- the new valuepublic float getImaginaryFloat()
getImaginaryFloat
in interface ComplexType<T extends AbstractIntegerBitType<T>>
public double getImaginaryDouble()
getImaginaryDouble
in interface ComplexType<T extends AbstractIntegerBitType<T>>
public void setImaginary(float complex)
setImaginary
in interface ComplexType<T extends AbstractIntegerBitType<T>>
public void setImaginary(double complex)
setImaginary
in interface ComplexType<T extends AbstractIntegerBitType<T>>
public float getPhaseFloat()
getPhaseFloat
in interface ComplexType<T extends AbstractIntegerBitType<T>>
public double getPhaseDouble()
getPhaseDouble
in interface ComplexType<T extends AbstractIntegerBitType<T>>
public float getPowerFloat()
getPowerFloat
in interface ComplexType<T extends AbstractIntegerBitType<T>>
public double getPowerDouble()
getPowerDouble
in interface ComplexType<T extends AbstractIntegerBitType<T>>
public void setComplexNumber(float r, float i)
setComplexNumber
in interface ComplexType<T extends AbstractIntegerBitType<T>>
public void setComplexNumber(double r, double i)
setComplexNumber
in interface ComplexType<T extends AbstractIntegerBitType<T>>
public void complexConjugate()
complexConjugate
in interface ComplexType<T extends AbstractIntegerBitType<T>>
public int compareTo(T other)
compareTo
in interface Comparable<T extends AbstractIntegerBitType<T>>
public boolean valueEquals(T t)
valueEquals
in interface ValueEquals<T extends AbstractIntegerBitType<T>>
t
- Copyright © 2015–2022 ImgLib2. All rights reserved.