Class VoxelPartitonFactoryHistogram
Object
org.anchoranalysis.mpp.index.factory.VoxelPartitonFactoryHistogram
- All Implemented Interfaces:
VoxelPartitionFactory<org.anchoranalysis.math.histogram.Histogram>
public class VoxelPartitonFactoryHistogram extends Object implements VoxelPartitionFactory<org.anchoranalysis.math.histogram.Histogram>
A factory for creating
VoxelPartition instances that use Histograms as parts.
This implementation creates VoxelPartitionHistogram objects with histograms of 256
bins (0-255).
-
Constructor Summary
Constructors Constructor Description VoxelPartitonFactoryHistogram() -
Method Summary
Modifier and Type Method Description voidaddUnused(org.anchoranalysis.math.histogram.Histogram part)Adds an unused histogram to the factory.VoxelPartition<org.anchoranalysis.math.histogram.Histogram>create(int numSlices)Creates a newVoxelPartitionHistogramwith the specified number of slices.
-
Constructor Details
-
VoxelPartitonFactoryHistogram
public VoxelPartitonFactoryHistogram()
-
-
Method Details
-
create
Creates a newVoxelPartitionHistogramwith the specified number of slices.- Specified by:
createin interfaceVoxelPartitionFactory<org.anchoranalysis.math.histogram.Histogram>- Parameters:
numSlices- the number of slices in the voxel partition- Returns:
- a new
VoxelPartitionHistograminstance
-
addUnused
public void addUnused(org.anchoranalysis.math.histogram.Histogram part)Adds an unused histogram to the factory.This implementation does nothing, as histograms are not reused.
- Specified by:
addUnusedin interfaceVoxelPartitionFactory<org.anchoranalysis.math.histogram.Histogram>- Parameters:
part- the unused histogram
-