public static interface ObjectIntMultiVector.WeightProvider
Modifier and Type | Method and Description |
---|---|
float |
getWeight(ObjectIntMultiVector.SortedDataIterator iterator)
Returns the weight for the item that the
iterator points to. |
double |
getWeightNorm(ObjectIntMultiVector obj)
Returns the square root of the sum of all weight squares for the given object.
|
float |
getWeightSum(ObjectIntMultiVector obj)
Returns the sum of all weights for the given object.
|
float getWeight(ObjectIntMultiVector.SortedDataIterator iterator)
iterator
points to.iterator
- this iterator's current object weight is to be retrievedfloat getWeightSum(ObjectIntMultiVector obj)
getWeight(messif.objects.impl.ObjectIntMultiVector.SortedDataIterator)
,
i.e. the returned sum is the sum of the weight retrieved by iterating over
all items from the obj.getSortedIterator()
.obj
- the object for which the weights are givendouble getWeightNorm(ObjectIntMultiVector obj)
getWeight(messif.objects.impl.ObjectIntMultiVector.SortedDataIterator)
,
i.e. the returned number is the square root of the sum of all weight squares retrieved by iterating over
all items from the obj.getSortedIterator()
.obj
- the object for which the weights are given