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

Method add

JSAT/src/jsat/linear/vectorcollection/RTree.java:185–193  ·  view source on GitHub ↗

@param v point to add @return true if this node needs to be split

(V v)

Source from the content-addressed store, hash-verified

183 * @return true if this node needs to be split
184 */
185 boolean add(V v)
186 {
187 points.add(v);
188 if(bound == null)
189 bound = new Rectangle(v);
190 else
191 bound.adjustToContain(v);
192 return size() > M;
193 }
194
195 /**
196 *

Callers 1

splitNodeMethod · 0.95

Calls 3

sizeMethod · 0.95
adjustToContainMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected