public class KernelBirthPartition extends KernelBirth<MarksFromPartition>
As an example, this is like sampling WITHOUT replacement.
Constructor and Description |
---|
KernelBirthPartition() |
Modifier and Type | Method and Description |
---|---|
protected Optional<MarksFromPartition> |
calculateForNewMark(MarksFromPartition exst,
Set<Mark> listMarksNew,
KernelCalculationContext context) |
boolean |
isCompatibleWith(Mark testMark) |
protected Optional<Set<Mark>> |
proposeNewMarks(MarksFromPartition exst,
int number,
KernelCalculationContext context) |
void |
updateAfterAcceptance(UpdatableMarksList updatableMarkSetCollection,
MarksFromPartition energyExisting,
MarksFromPartition energyNew)
If the kernel is accepted, makes the necessary changes to a ListUpdatableMarkSetCollection
|
calculateAcceptanceProbability, changedMarkIDArray, describeLast, getRepeats, makeProposal, marksNew, setRepeats
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
protected Optional<Set<Mark>> proposeNewMarks(MarksFromPartition exst, int number, KernelCalculationContext context)
proposeNewMarks
in class KernelBirth<MarksFromPartition>
protected Optional<MarksFromPartition> calculateForNewMark(MarksFromPartition exst, Set<Mark> listMarksNew, KernelCalculationContext context) throws KernelCalculateEnergyException
calculateForNewMark
in class KernelBirth<MarksFromPartition>
KernelCalculateEnergyException
public void updateAfterAcceptance(UpdatableMarksList updatableMarkSetCollection, MarksFromPartition energyExisting, MarksFromPartition energyNew) throws UpdateMarkSetException
Kernel
updateAfterAcceptance
in class Kernel<MarksFromPartition,UpdatableMarksList>
updatableMarkSetCollection
- where to make the changesenergyExisting
- existing energyenergyNew
- accepted energyUpdateMarkSetException
public boolean isCompatibleWith(Mark testMark)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.