OOF2: The Manual
Name
Snap Anneal (SnapAnneal) — Snap nodes to pixel boundaries and randomly accept the moves that meet the acceptance criterion.
Synopsis
SnapAnneal
(targets
,criterion
,T
,iteration
)
Details
-
Base class:
SkeletonModifier
-
Parameters:
targets
- Which nodes to move. Type: An object of the
FiddleNodesTargets
class. criterion
- Acceptance criterion Type: An object of the
SkelModCriterion
class. T
- Failed moves will be accepted if T>0 and exp(-diffE/T) > r, where diffE is the energy gained and r is a random number between 0 and 1. Type: A real number.
iteration
- Iteration method. Type: An object of the
IterationManager
class.
Description
SnapAnneal
is a combination of the
SnapNodes and
Anneal
SkeletonModifiers. It addresses
each Node
in turn, and tries to move it to a nearby pixel boundary.
A move is accepted or rejected randomly according
to the same criteria used by
Anneal. If the parameter
T
is non-zero, some moves that violate the criterion
will be accepted.