Class CAAMInitializeStegmann.CAAMInitCandidates
- java.lang.Object
-
- gov.nih.mipav.view.renderer.WildMagic.AAM.CAAMInitializeStegmann.CAAMInitCandidates
-
- Enclosing class:
- CAAMInitializeStegmann
class CAAMInitializeStegmann.CAAMInitCandidates extends java.lang.Object
Initialization candidate containiner. Holds the 'n' best candidates that has applieed for acceptance.
-
-
Field Summary
Fields Modifier and Type Field Description private int
m_iNMaxCand
max candidate number.private java.util.Vector<CAAMInitializeStegmann.CAAMInitEntry>
m_vInitEntries
initial entry vector.
-
Constructor Summary
Constructors Constructor Description CAAMInitCandidates(int n)
Allocates a pool with room for 'n' candidates.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
ApplyForAcceptance(CAAMInitializeStegmann.CAAMInitEntry e)
Apply for acceptance of a new initialization hypothesis.CAAMInitializeStegmann.CAAMInitEntry
Candidate(int i)
int
NCandidates()
-
-
-
Field Detail
-
m_iNMaxCand
private int m_iNMaxCand
max candidate number.
-
m_vInitEntries
private java.util.Vector<CAAMInitializeStegmann.CAAMInitEntry> m_vInitEntries
initial entry vector.
-
-
Method Detail
-
ApplyForAcceptance
public boolean ApplyForAcceptance(CAAMInitializeStegmann.CAAMInitEntry e)
Apply for acceptance of a new initialization hypothesis. The entry are accepted if it is better than the worst candiate, or if there is less than 'n' candidates in the set.- Parameters:
e
- The seach result, which is applieing for acceptance.- Returns:
- True if it is accepted, false if not.
-
NCandidates
public int NCandidates()
-
Candidate
public CAAMInitializeStegmann.CAAMInitEntry Candidate(int i)
-
-