|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.jahmm.CentroidObservationReal
public class CentroidObservationReal
This class represents the centroid of a set of ObservationReal
.
Constructor Summary | |
---|---|
CentroidObservationReal(ObservationReal o)
|
Method Summary | |
---|---|
double |
distance(ObservationReal e)
Returns the distance from this centroid to a given element. |
void |
reevaluateAdd(ObservationReal e,
java.util.List<? extends ObservationReal> v)
Reevalue the value of this centroid, knowing that it currently is the centroid of the observations composing v and that we
want it to be the centroid of v plus the value of the
observation e . |
void |
reevaluateRemove(ObservationReal e,
java.util.List<? extends ObservationReal> v)
Reevalue the value of this centroid, knowing that it currently is the centroid of the observations composing v and that we want
it to be the centroid of v minus the value of the
observation e . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CentroidObservationReal(ObservationReal o)
Method Detail |
---|
public void reevaluateAdd(ObservationReal e, java.util.List<? extends ObservationReal> v)
Centroid
v
and that we
want it to be the centroid of v
plus the value of the
observation e
.
reevaluateAdd
in interface Centroid<ObservationReal>
e
- An observation that must be involved in the computation
of the new value of this centroid.v
- The set of observations that gave the current value of this
centroid.public void reevaluateRemove(ObservationReal e, java.util.List<? extends ObservationReal> v)
Centroid
v
and that we want
it to be the centroid of v
minus the value of the
observation e
.
reevaluateRemove
in interface Centroid<ObservationReal>
e
- An observation that must not be involved in the computation
of the new value of this centroid.v
- The set of observations (which holds o
) that gave
the current value of this centroid.public double distance(ObservationReal e)
distance
in interface Centroid<ObservationReal>
e
- The element, which must be an ObservationReal
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |