Class AbstractNumericComposite<T extends NumericType<T>, C extends AbstractNumericComposite<T,C> >
java.lang.Object
net.imglib2.view.composite.AbstractComposite<T>
net.imglib2.view.composite.AbstractNumericComposite<T,C>
- All Implemented Interfaces:
Iterable<T>, NumericType<C>, Add<C>, Div<C>, Mul<C>, MulFloatingPoint, Pow<C>, PowFloatingPoint, SetOne, SetZero, Sub<C>, ValueEquals<C>, Type<C>, Composite<T>
- Direct Known Subclasses:
NumericComposite, RealComposite
public abstract class AbstractNumericComposite<T extends NumericType<T>, C extends AbstractNumericComposite<T,C>>
extends AbstractComposite<T>
implements NumericType<C>, Iterable<T>
Abstract base class for a vector of
NumericType scalars. It is a
NumericType itself, implementing the NumericType algebra as
element-wise operations.-
Field Summary
FieldsFields inherited from class AbstractComposite
d, sourceAccess -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractComposite
getMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Type
copy, createVariable
-
Field Details
-
length
protected final int length -
iterator
-
-
Constructor Details
-
AbstractNumericComposite
-
-
Method Details
-
getLength
public int getLength() -
set
-
add
-
sub
-
mul
-
div
-
pow
-
pow
public void pow(double power) - Specified by:
powin interfacePowFloatingPoint
-
setZero
-
setOne
-
mul
public void mul(float c) - Specified by:
mulin interfaceMulFloatingPoint
-
mul
public void mul(double c) - Specified by:
mulin interfaceMulFloatingPoint
-
iterator
-
valueEquals
- Specified by:
valueEqualsin interfaceValueEquals<T extends NumericType<T>>
-