public abstract class KernelDeath<T> extends KernelPosNeg<T,UpdatableMarksList>
Modifier and Type | Class and Description |
---|---|
protected static class |
KernelDeath.MarkAnd<S,T> |
Constructor and Description |
---|
KernelDeath() |
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() |
protected Optional<Mark> |
getMarkRmv() |
boolean |
isCompatibleWith(Mark testMark) |
Optional<T> |
makeProposal(Optional<T> existing,
KernelCalculationContext context)
Calculates the Energy for a proposal
|
protected abstract Optional<KernelDeath.MarkAnd<Mark,T>> |
removeAndUpdateEnergy(T exst,
ProposerContext context) |
protected static int |
selectIndexToRmv(MarkCollection exst,
ProposerContext propContext) |
assignTo, getProbNeg, getProbPos, setProbNeg, setProbPos
informLatestState, initBeforeCalc
getName, setName, updateAfterAcceptance
initializerForMarksBeans
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public Optional<T> makeProposal(Optional<T> existing, KernelCalculationContext context) throws KernelCalculateEnergyException
Kernel
makeProposal
in class Kernel<T,UpdatableMarksList>
existing
- the existing EnergyKernelCalculateEnergyException
protected abstract Optional<KernelDeath.MarkAnd<Mark,T>> removeAndUpdateEnergy(T exst, ProposerContext context) throws KernelCalculateEnergyException
KernelCalculateEnergyException
public double calculateAcceptanceProbability(int existingSize, int proposalSize, double poissonIntensity, Dimensions dimensions, double densityRatio)
calculateAcceptanceProbability
in class Kernel<T,UpdatableMarksList>
public String describeLast()
describeLast
in class Kernel<T,UpdatableMarksList>
public int[] changedMarkIDArray()
Kernel
Guaranteed only to be called, if energy calculation did not return null
changedMarkIDArray
in class Kernel<T,UpdatableMarksList>
public boolean isCompatibleWith(Mark testMark)
protected static int selectIndexToRmv(MarkCollection exst, ProposerContext propContext)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.