MCPcopy Create free account
hub / github.com/bwaldvogel/liblinear-java / cmp

Method cmp

src/main/java/de/bwaldvogel/liblinear/Heap.java:20–26  ·  view source on GitHub ↗
(Feature left, Feature right)

Source from the content-addressed store, hash-verified

18 }
19
20 private boolean cmp(Feature left, Feature right) {
21 if (this.type == HeapType.MIN) {
22 return left.getValue() > right.getValue();
23 } else {
24 return left.getValue() < right.getValue();
25 }
26 }
27
28 int size() {
29 return size;

Callers 2

pushMethod · 0.95
popMethod · 0.95

Calls 1

getValueMethod · 0.65

Tested by

no test coverage detected