Package gov.nih.mipav.model.algorithms
Class CeresSolver.OrderedGroups<T>
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.CeresSolver.OrderedGroups<T>
-
- Enclosing class:
- CeresSolver
class CeresSolver.OrderedGroups<T> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.HashMap<T,java.lang.Integer>
element_to_group_
private java.util.HashMap<java.lang.Integer,java.util.Set<T>>
group_to_elements_
-
Constructor Summary
Constructors Constructor Description OrderedGroups()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
AddElementToGroup(T element, int group)
void
Clear()
java.util.HashMap<java.lang.Integer,java.util.Set<T>>
group_to_elements()
int
GroupId(T element)
int
GroupSize(int group)
boolean
IsMember(T element)
int
MinNonZeroGroup()
int
NumElements()
int
NumGroups()
int
Remove(java.util.Vector<T> elements)
boolean
Remove(T element)
(package private) void
Reverse()
-
-
-
Method Detail
-
group_to_elements
public java.util.HashMap<java.lang.Integer,java.util.Set<T>> group_to_elements()
-
AddElementToGroup
public boolean AddElementToGroup(T element, int group)
-
NumGroups
public int NumGroups()
-
MinNonZeroGroup
public int MinNonZeroGroup()
-
GroupSize
public int GroupSize(int group)
-
GroupId
public int GroupId(T element)
-
Remove
public boolean Remove(T element)
-
NumElements
public int NumElements()
-
Remove
public int Remove(java.util.Vector<T> elements)
-
IsMember
public boolean IsMember(T element)
-
Clear
public void Clear()
-
Reverse
void Reverse()
-
-