|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javaslam.prob.Variable
A Gaussian vector variable.
Field Summary | |
int |
dim
The dimension of this variable. |
Object |
label
The label for this variable. |
Constructor Summary | |
Variable(int dim)
Constructor. |
|
Variable(Object label,
int dim)
Default constructor. |
Method Summary | |
static int |
dimension(Set vars)
Computes the sum dimension of a set of Variable s. |
boolean |
equals(Object o)
Finalizes the definition of equals
so that two variable references are equal iff they refer to the
same object. |
int |
hashCode()
Finalizes the definition of hashCode . |
String |
toString()
Returns the string representation of this variable's label. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public final Object label
public final int dim
Constructor Detail |
public Variable(Object label, int dim)
label
- an object that labels this variable. Labels are not
used to determine the identity of variables; see equals
.dim
- the dimension of this vector variablepublic Variable(int dim)
dim
- the dimension of this vector variableMethod Detail |
public final boolean equals(Object o)
equals
so that two variable references are equal iff they refer to the
same object. This notion of equality is consistent with two
variables having identical labels, but being distinct. This
notion of equality prevents two variable objects from referring
to the same variable but having differing dimensions.
equals
in class Object
public final int hashCode()
hashCode
.
hashCode
in class Object
public String toString()
toString
in class Object
public static int dimension(Set vars)
Variable
s.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |