Package net.imglib2.img.sparse
Class DoubleNtree
- java.lang.Object
-
- net.imglib2.img.sparse.DoubleNtree
-
- All Implemented Interfaces:
DataAccess,DoubleAccess,NtreeAccess<java.lang.Double,DoubleNtree>
public final class DoubleNtree extends java.lang.Object implements DoubleAccess, NtreeAccess<java.lang.Double,DoubleNtree>
DoubleAccess based on aNtree<Double>.
-
-
Constructor Summary
Constructors Modifier Constructor Description DoubleNtree(long[] dimensions, long[] position, double value)privateDoubleNtree(Ntree<java.lang.Double> data, long[] pos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleNtreecreateInstance(long[] pos)Ntree<java.lang.Double>getCurrentStorageNtree()doublegetValue(int index)voidsetValue(int index, double value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.imglib2.img.sparse.NtreeAccess
createView
-
-
-
-
Field Detail
-
position
private final long[] position
-
data
private final Ntree<java.lang.Double> data
-
-
Constructor Detail
-
DoubleNtree
public DoubleNtree(long[] dimensions, long[] position, double value)
-
DoubleNtree
private DoubleNtree(Ntree<java.lang.Double> data, long[] pos)
-
-
Method Detail
-
getValue
public double getValue(int index)
- Specified by:
getValuein interfaceDoubleAccess
-
setValue
public void setValue(int index, double value)- Specified by:
setValuein interfaceDoubleAccess
-
getCurrentStorageNtree
public Ntree<java.lang.Double> getCurrentStorageNtree()
- Specified by:
getCurrentStorageNtreein interfaceNtreeAccess<java.lang.Double,DoubleNtree>
-
createInstance
public DoubleNtree createInstance(long[] pos)
- Specified by:
createInstancein interfaceNtreeAccess<java.lang.Double,DoubleNtree>
-
-