T
- proposal-typepublic abstract class KernelBirth<T> extends KernelPosNeg<T,UpdatableMarksList>
Constructor and Description |
---|
KernelBirth() |
Modifier and Type | Method and Description |
---|---|
double |
calculateAcceptanceProbability(int existingSize,
int proposalSize,
double poissonIntensity,
Dimensions dimensions,
double densityRatio) |
protected abstract Optional<T> |
calculateForNewMark(T exst,
Set<Mark> listMarksNew,
KernelCalculationContext context) |
int[] |
changedMarkIDArray()
The mark ids that were changed in the last energy calculation for the kernel
|
String |
describeLast() |
int |
getRepeats()
Total number of births
|
Optional<T> |
makeProposal(Optional<T> existing,
KernelCalculationContext context)
Calculates the Energy for a proposal
|
protected Optional<Set<Mark>> |
marksNew() |
protected abstract Optional<Set<Mark>> |
proposeNewMarks(T exst,
int number,
KernelCalculationContext context) |
void |
setRepeats(int repeats)
Total number of births
|
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isCompatibleWith
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<Set<Mark>> proposeNewMarks(T exst, int number, KernelCalculationContext context)
protected abstract Optional<T> calculateForNewMark(T exst, Set<Mark> listMarksNew, KernelCalculationContext 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 int getRepeats()
public void setRepeats(int repeats)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.