|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
V
- the type of FeatureVector implemented by a subclassN
- the type of the attribute valuespublic interface FeatureVector<V extends FeatureVector<V,N>,N extends Number>
Interface FeatureVector defines the methods that should be implemented by any Object that is element of a real vector space of type N.
Method Summary | |
---|---|
Vector |
getColumnVector()
Returns a Vector representing in one column and getDimensionality() rows the values of this FeatureVector of V. |
int |
getDimensionality()
The dimensionality of the vector space where of this FeatureVector of V is an element. |
Matrix |
getRowVector()
Returns a Matrix representing in one row and getDimensionality() columns the values of this FeatureVector of V. |
N |
getValue(int dimension)
Returns the value in the specified dimension. |
V |
multiplicate(double k)
Returns a new FeatureVector of V that is the result of a scalar multiplication with the given scalar. |
V |
negativeVector()
Returns the additive inverse to this FeatureVector of V. |
V |
newInstance(List<N> values)
Returns a new FeatureVector of V for the given values. |
V |
newInstance(N[] values)
Returns a new FeatureVector of V for the given values. |
V |
nullVector()
Provides a null vector of the same Feature Vector Space as this FeatureVector of V (that is, of the same dimensionality). |
V |
plus(V fv)
Returns a new FeatureVector of V that is the sum of this FeatureVector of V and the given FeatureVector of V. |
V |
randomInstance(N min,
N max,
Random random)
Returns a FeatureVector of V with random values between min and max. |
V |
randomInstance(Random random)
Returns a FeatureVector of V with uniformly distributed (0-1) random values. |
V |
randomInstance(V min,
V max,
Random random)
Returns a FeatureVector of V with random values between min and max. |
String |
toString()
Returns a String representation of the FeatureVector of V as a line that is suitable to be printed in a sequential file. |
Methods inherited from interface de.lmu.ifi.dbs.elki.data.DatabaseObject |
---|
equals, getID, setID |
Methods inherited from interface de.lmu.ifi.dbs.elki.index.tree.spatial.SpatialObject |
---|
getID |
Methods inherited from interface de.lmu.ifi.dbs.elki.index.tree.spatial.SpatialComparable |
---|
getMax, getMin |
Method Detail |
---|
V newInstance(N[] values)
values
- the values of the featureVector
V newInstance(List<N> values)
values
- the values of the featureVector
V randomInstance(Random random)
random
- a Random instance
V randomInstance(N min, N max, Random random)
min
- minimum of random valuemax
- maximum of random valuerandom
- a random instance
V randomInstance(V min, V max, Random random)
min
- minimum of random value for each axismax
- maximum of random value for each axisrandom
- a random instance
int getDimensionality()
getDimensionality
in interface SpatialComparable
N getValue(int dimension)
dimension
- the desired dimension, where 1 ≤ dimension ≤
this.getDimensionality()
Vector getColumnVector()
getDimensionality()
rows the values of this FeatureVector of V.
getDimensionality()
rows the values of this
FeatureVector of VMatrix getRowVector()
getDimensionality()
columns the values of this FeatureVector of V.
getDimensionality()
columns the values of this
FeatureVector of VV plus(V fv)
fv
- a FeatureVector of V to be added to this FeatureVector of V
V nullVector()
V negativeVector()
V multiplicate(double k)
k
- a scalar to multiply this FeatureVector of V with
String toString()
toString
in class Object
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |