|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulg.montefiore.run.jahmm.CentroidObservationInteger
public class CentroidObservationInteger
This class represents the centroid of a set of ObservationInteger.
| Constructor Summary | |
|---|---|
CentroidObservationInteger(ObservationInteger o)
|
|
| Method Summary | |
|---|---|
double |
distance(ObservationInteger e)
Returns the distance from this centroid to a given element. |
void |
reevaluateAdd(ObservationInteger e,
java.util.List<? extends ObservationInteger> 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(ObservationInteger e,
java.util.List<? extends ObservationInteger> 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 CentroidObservationInteger(ObservationInteger o)
| Method Detail |
|---|
public void reevaluateAdd(ObservationInteger e,
java.util.List<? extends ObservationInteger> v)
Centroidv and that we
want it to be the centroid of v plus the value of the
observation e.
reevaluateAdd in interface Centroid<ObservationInteger>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(ObservationInteger e,
java.util.List<? extends ObservationInteger> v)
Centroidv and that we want
it to be the centroid of v minus the value of the
observation e.
reevaluateRemove in interface Centroid<ObservationInteger>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(ObservationInteger e)
distance in interface Centroid<ObservationInteger>e - The element, which must be an ObservationInteger.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||