public class KernelSplit extends KernelPosNeg<VoxelizedMarksWithEnergy,UpdatableMarksList>
Constructor and Description |
---|
KernelSplit() |
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() |
MarkFromCollectionProposer |
getMarkFromMarksProposer() |
MarkSplitProposer |
getSplitProposer() |
boolean |
isCompatibleWith(Mark testMark) |
Optional<VoxelizedMarksWithEnergy> |
makeProposal(Optional<VoxelizedMarksWithEnergy> existing,
KernelCalculationContext context)
Calculates the Energy for a proposal
|
void |
setMarkFromMarksProposer(MarkFromCollectionProposer markFromMarksProposer) |
void |
setSplitProposer(MarkSplitProposer splitProposer) |
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 boolean isCompatibleWith(Mark testMark)
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 MarkSplitProposer getSplitProposer()
public void setSplitProposer(MarkSplitProposer splitProposer)
public MarkFromCollectionProposer getMarkFromMarksProposer()
public void setMarkFromMarksProposer(MarkFromCollectionProposer markFromMarksProposer)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.