public class VectorZero extends Object implements ScoreEvaluation.Predicate<IncreasingVectorIter>
Modifier and Type | Field and Description |
---|---|
(package private) int |
numpos
Number of positive values.
|
(package private) NumberVector |
vec
Vector to use as reference
|
Constructor and Description |
---|
VectorZero(NumberVector vec)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
numPositive()
Return the number of positive ids.
|
boolean |
test(IncreasingVectorIter o)
Test a result.
|
NumberVector vec
int numpos
public VectorZero(NumberVector vec)
vec
- Reference vector.public boolean test(IncreasingVectorIter o)
ScoreEvaluation.Predicate
test
in interface ScoreEvaluation.Predicate<IncreasingVectorIter>
o
- Object to testtrue
when positive.public int numPositive()
ScoreEvaluation.Predicate
numPositive
in interface ScoreEvaluation.Predicate<IncreasingVectorIter>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.