Package net.imglib2.view.composite
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,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.- Author:
- Stephan Saalfeld
-
Field Summary
FieldsFields inherited from class net.imglib2.view.composite.AbstractComposite
d, sourceAccess -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.imglib2.view.composite.AbstractComposite
getMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.imglib2.type.Type
copy, createVariable
-
Field Details
-
length
protected final int length -
iterator
-
-
Constructor Details
-
AbstractNumericComposite
-
-
Method Details
-
set
Description copied from interface:TypeSets the value of anotherType.- Specified by:
setin interfaceType<T extends NumericType<T>>- Parameters:
c- the new value
-
add
- Specified by:
addin interfaceAdd<T extends NumericType<T>>
-
sub
- Specified by:
subin interfaceSub<T extends NumericType<T>>
-
mul
- Specified by:
mulin interfaceMul<T extends NumericType<T>>
-
div
- Specified by:
divin interfaceDiv<T extends NumericType<T>>
-
setZero
public void setZero() -
setOne
public void setOne() -
mul
public void mul(float c) - Specified by:
mulin interfaceMulFloatingPoint
-
mul
public void mul(double c) - Specified by:
mulin interfaceMulFloatingPoint
-
iterator
- Specified by:
iteratorin interfaceIterable<T extends NumericType<T>>
-
valueEquals
- Specified by:
valueEqualsin interfaceValueEquals<T extends NumericType<T>>
-