public class KernelBirthAndKill extends KernelPosNeg<VoxelizedMarksWithEnergy,UpdatableMarksList>
Constructor and Description |
---|
KernelBirthAndKill() |
Modifier and Type | Method and Description |
---|---|
double |
calculateAcceptanceProbability(int existingSize,
int proposalSize,
double poissonIntensity,
Dimensions dimensions,
double densityRatio) |
int[] |
changedMarkIDArray()
The mark ids that were changed in the last energy calculation for the kernel
|
String |
describeLast() |
MarkProposer |
getMarkProposer() |
MarkProposer |
getMarkProposerAdditionalBirth() |
double |
getOverlapRatioThreshold() |
int |
getRegionID() |
boolean |
isCompatibleWith(Mark testMark) |
Optional<VoxelizedMarksWithEnergy> |
makeProposal(Optional<VoxelizedMarksWithEnergy> existing,
KernelCalculationContext context)
Calculates the Energy for a proposal
|
void |
setMarkProposer(MarkProposer markProposer) |
void |
setMarkProposerAdditionalBirth(MarkProposer markProposerAdditionalBirth) |
void |
setOverlapRatioThreshold(double overlapRatioThreshold) |
void |
setRegionID(int regionID) |
void |
updateAfterAcceptance(UpdatableMarksList updatableState,
VoxelizedMarksWithEnergy exst,
VoxelizedMarksWithEnergy accptd)
If the kernel is accepted, makes the necessary changes to a ListUpdatableMarkSetCollection
|
assignTo, getProbNeg, getProbPos, setProbNeg, setProbPos
informLatestState, initBeforeCalc
initializerForMarksBeans
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public Optional<VoxelizedMarksWithEnergy> makeProposal(Optional<VoxelizedMarksWithEnergy> existing, KernelCalculationContext context) throws KernelCalculateEnergyException
Kernel
makeProposal
in class Kernel<VoxelizedMarksWithEnergy,UpdatableMarksList>
existing
- the existing EnergyKernelCalculateEnergyException
public double calculateAcceptanceProbability(int existingSize, int proposalSize, double poissonIntensity, Dimensions dimensions, double densityRatio)
calculateAcceptanceProbability
in class Kernel<VoxelizedMarksWithEnergy,UpdatableMarksList>
public String describeLast()
describeLast
in class Kernel<VoxelizedMarksWithEnergy,UpdatableMarksList>
public void updateAfterAcceptance(UpdatableMarksList updatableState, VoxelizedMarksWithEnergy exst, VoxelizedMarksWithEnergy accptd) throws UpdateMarkSetException
Kernel
updateAfterAcceptance
in class Kernel<VoxelizedMarksWithEnergy,UpdatableMarksList>
updatableState
- where to make the changesexst
- existing energyaccptd
- accepted energyUpdateMarkSetException
public int[] changedMarkIDArray()
Kernel
Guaranteed only to be called, if energy calculation did not return null
changedMarkIDArray
in class Kernel<VoxelizedMarksWithEnergy,UpdatableMarksList>
public boolean isCompatibleWith(Mark testMark)
public double getOverlapRatioThreshold()
public void setOverlapRatioThreshold(double overlapRatioThreshold)
public MarkProposer getMarkProposer()
public void setMarkProposer(MarkProposer markProposer)
public MarkProposer getMarkProposerAdditionalBirth()
public void setMarkProposerAdditionalBirth(MarkProposer markProposerAdditionalBirth)
public int getRegionID()
public void setRegionID(int regionID)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.