
public class ProjectedCentroid extends Centroid
DatabaseUtil for
easier to use APIs.Vector.ShortSerializer, Vector.SmallSerializer, Vector.VariableSerializer| Modifier and Type | Field and Description |
|---|---|
private long[] |
dims
The selected dimensions.
|
BYTE_SERIALIZER, elements, ERR_MATRIX_INNERDIM, ERR_VEC_DIMENSIONS, FACTORY, SHORT_SERIALIZER, VARIABLE_SERIALIZER| Constructor and Description |
|---|
ProjectedCentroid(long[] dims,
int dim)
Constructor for updating use.
|
| Modifier and Type | Method and Description |
|---|---|
static ProjectedCentroid |
make(long[] dims,
Relation<? extends NumberVector> relation)
Static Constructor from a relation.
|
static ProjectedCentroid |
make(long[] dims,
Relation<? extends NumberVector> relation,
DBIDs ids)
Static Constructor from a relation.
|
void |
put(double[] val)
Add a single value with weight 1.0.
|
void |
put(double[] val,
double weight)
Add data with a given weight.
|
void |
put(NumberVector val)
Add a single value with weight 1.0.
|
void |
put(NumberVector val,
double weight)
Add data with a given weight.
|
make, make, make, put, put, toVectorbyteValue, clone, copy, cross3D, doubleValue, equals, euclideanLength, floatValue, get, getArrayCopy, getArrayRef, getColumnVector, getDimensionality, getMax, getMin, getValue, hashCode, intValue, longValue, minus, minusEquals, minusEquals, minusTimes, minusTimesEquals, normalize, plus, plusEquals, plusEquals, plusTimes, plusTimesEquals, projection, randomNormalizedVector, rotate90Equals, set, set, setZero, shortValue, squaredEuclideanLength, times, times, timesEquals, timesTranspose, timesTranspose, toString, toStringNoWhitespace, transposeTimes, transposeTimes, transposeTimesTimes, unitVectorpublic ProjectedCentroid(long[] dims,
int dim)
dims - Dimensions to use (indexed with 0)dim - Full dimensionalitypublic void put(double[] val)
public void put(double[] val,
double weight)
public void put(NumberVector val)
public void put(NumberVector val, double weight)
public static ProjectedCentroid make(long[] dims, Relation<? extends NumberVector> relation)
dims - Dimensions to use (indexed with 0)relation - Relation to processpublic static ProjectedCentroid make(long[] dims, Relation<? extends NumberVector> relation, DBIDs ids)
dims - Dimensions to use (indexed with 0)relation - Relation to processids - IDs to processCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.