MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / add

Method add

JSAT/src/jsat/linear/vectorcollection/VectorArray.java:76–83  ·  view source on GitHub ↗
(V e)

Source from the content-addressed store, hash-verified

74 }
75
76 @Override
77 public boolean add(V e)
78 {
79 boolean toRet = super.add(e);
80 if(distCache != null)
81 this.distCache.addAll(distanceMetric.getQueryInfo(e));
82 return toRet;
83 }
84
85 @Override
86 public boolean addAll(Collection<? extends V> c)

Callers 15

testSearch_Vec_intMethod · 0.95
testSearch_Vec_doubleMethod · 0.95
testSearch_Vec_intMethod · 0.95
testSearch_Vec_doubleMethod · 0.95
testSearch_Vec_intMethod · 0.95
testSearch_Vec_doubleMethod · 0.95
testSearch_Vec_intMethod · 0.95
testSearch_Vec_doubleMethod · 0.95
testSearch_Vec_intMethod · 0.95
testSearch_Vec_doubleMethod · 0.95

Calls 2

getQueryInfoMethod · 0.65
addAllMethod · 0.45

Tested by 15

testSearch_Vec_intMethod · 0.76
testSearch_Vec_doubleMethod · 0.76
testSearch_Vec_intMethod · 0.76
testSearch_Vec_doubleMethod · 0.76
testSearch_Vec_intMethod · 0.76
testSearch_Vec_doubleMethod · 0.76
testSearch_Vec_intMethod · 0.76
testSearch_Vec_doubleMethod · 0.76
testSearch_Vec_intMethod · 0.76
testSearch_Vec_doubleMethod · 0.76