|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.jahmm.CentroidObservationVector
public class CentroidObservationVector
This class represents the centroid of a set of ObservationVector
.
Constructor Summary | |
---|---|
CentroidObservationVector(ObservationVector o)
Creates a new centroid that represents the mean value of a set of ObservationVector s. |
Method Summary | |
---|---|
double |
distance(ObservationVector e)
Returns the distance between this centroid and an element. |
void |
reevaluateAdd(ObservationVector e,
java.util.List<? extends ObservationVector> 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(ObservationVector e,
java.util.List<? extends ObservationVector> 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 CentroidObservationVector(ObservationVector o)
ObservationVector
s.
o
- The initial value of the new centroid.Method Detail |
---|
public void reevaluateAdd(ObservationVector e, java.util.List<? extends ObservationVector> 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<ObservationVector>
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(ObservationVector e, java.util.List<? extends ObservationVector> 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<ObservationVector>
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(ObservationVector e)
distance
in interface Centroid<ObservationVector>
e
- The element, which must be an ObservationVector
with a dimension compatible with this
centroid.
element
and this centroid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |