jsat.linear.vectorcollection
Interface IncrementalCollection<V extends Vec>
-
- Type Parameters:
V- The type of vectors stored in this collection
- All Superinterfaces:
- java.lang.Cloneable, java.io.Serializable, VectorCollection<V>
- All Known Implementing Classes:
- BallTree, CoverTree, KDTree, RandomBallCover, RTree, SVPTree, VectorArray, VPTree, VPTreeMV
public interface IncrementalCollection<V extends Vec> extends VectorCollection<V>
This interface is for Vector Collections that support incremental construction. If all data is available at the onset, it is recommended to use the appropriate constructor / bulk insertion as they may be more compute efficient or produce better indexes. The incremental insertion of points is not guaranteed to result in a collection that is equally as performant in either construction or querying. However, it does allow for additions to the collection without needing to re-build the entire collection. Efficiency and performance of incremental additions will depend on the base implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description IncrementalCollection<V>clone()voidinsert(V x)Incrementally adds the given datapoint into the collection-
Methods inherited from interface jsat.linear.vectorcollection.VectorCollection
build, build, build, build, get, getAccelerationCache, getDistanceMetric, getVecs, search, search, search, search, search, search, search, search, setDistanceMetric, size
-
-
-
-
Method Detail
-
insert
void insert(V x)
Incrementally adds the given datapoint into the collection- Parameters:
x- the vector to add to the collection
-
clone
IncrementalCollection<V> clone()
- Specified by:
clonein interfaceVectorCollection<V extends Vec>
-
-
DataMelt 3.0 © DataMelt by jWork.ORG