public class KernelInitialMarksProposed extends KernelIndependent<MarkCollection,UpdatableMarksList>
Constructor and Description |
---|
KernelInitialMarksProposed() |
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() |
MarkCollectionProposer |
getMarksProposer() |
boolean |
isCompatibleWith(Mark testMark) |
Optional<MarkCollection> |
makeProposal(Optional<MarkCollection> existing,
KernelCalculationContext context)
Calculates the Energy for a proposal
|
void |
setMarksProposer(MarkCollectionProposer marksProposer) |
void |
updateAfterAcceptance(UpdatableMarksList updatableState,
MarkCollection exst,
MarkCollection accptd)
If the kernel is accepted, makes the necessary changes to a ListUpdatableMarkSetCollection
|
informLatestState, initBeforeCalc
initializerForMarksBeans
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public boolean isCompatibleWith(Mark testMark)
public Optional<MarkCollection> makeProposal(Optional<MarkCollection> existing, KernelCalculationContext context) throws KernelCalculateEnergyException
Kernel
makeProposal
in class Kernel<MarkCollection,UpdatableMarksList>
existing
- the existing EnergyKernelCalculateEnergyException
public double calculateAcceptanceProbability(int existingSize, int proposalSize, double poissonIntensity, Dimensions dimensions, double densityRatio)
calculateAcceptanceProbability
in class Kernel<MarkCollection,UpdatableMarksList>
public String describeLast()
describeLast
in class Kernel<MarkCollection,UpdatableMarksList>
public void updateAfterAcceptance(UpdatableMarksList updatableState, MarkCollection exst, MarkCollection accptd) throws UpdateMarkSetException
Kernel
updateAfterAcceptance
in class Kernel<MarkCollection,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<MarkCollection,UpdatableMarksList>
public MarkCollectionProposer getMarksProposer()
public void setMarksProposer(MarkCollectionProposer marksProposer)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.