public class ProjectedCentroid extends Centroid
DatabaseUtil for
easier to use APIs.NumberVector.Factory<V extends NumberVector>| Modifier and Type | Field and Description |
|---|---|
private long[] |
dims
The selected dimensions.
|
ATTRIBUTE_SEPARATOR, FIELD, FIELD_1D, FIELD_2D, VARIABLE_LENGTHTYPE| 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.
|
doubleValue, getArrayRef, getDimensionality, longValue, make, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbyteValue, floatValue, getMax, getMin, getValue, intValue, shortValuetoStringpublic 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 © 2019 ELKI Development Team. License information.