public class KernelInitialMarksFromPartition extends KernelIndependent<MarksFromPartition,UpdatableMarksList>
Constructor and Description |
---|
KernelInitialMarksFromPartition() |
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() |
ExtractWeightFromMark |
getExtractWeight() |
MarkCollectionProposer |
getMarksProposer() |
boolean |
isCompatibleWith(Mark testMark) |
Optional<MarksFromPartition> |
makeProposal(Optional<MarksFromPartition> existing,
KernelCalculationContext context)
Calculates the Energy for a proposal
|
void |
setExtractWeight(ExtractWeightFromMark extractWeight) |
void |
setMarksProposer(MarkCollectionProposer marksProposer) |
void |
updateAfterAcceptance(UpdatableMarksList updatableState,
MarksFromPartition exst,
MarksFromPartition 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 Optional<MarksFromPartition> makeProposal(Optional<MarksFromPartition> existing, KernelCalculationContext context) throws KernelCalculateEnergyException
Kernel
makeProposal
in class Kernel<MarksFromPartition,UpdatableMarksList>
existing
- the existing EnergyKernelCalculateEnergyException
public double calculateAcceptanceProbability(int existingSize, int proposalSize, double poissonIntensity, Dimensions dimensions, double densityRatio)
calculateAcceptanceProbability
in class Kernel<MarksFromPartition,UpdatableMarksList>
public String describeLast()
describeLast
in class Kernel<MarksFromPartition,UpdatableMarksList>
public void updateAfterAcceptance(UpdatableMarksList updatableState, MarksFromPartition exst, MarksFromPartition accptd) throws UpdateMarkSetException
Kernel
updateAfterAcceptance
in class Kernel<MarksFromPartition,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<MarksFromPartition,UpdatableMarksList>
public boolean isCompatibleWith(Mark testMark)
public MarkCollectionProposer getMarksProposer()
public void setMarksProposer(MarkCollectionProposer marksProposer)
public ExtractWeightFromMark getExtractWeight()
public void setExtractWeight(ExtractWeightFromMark extractWeight)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.