|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public 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. |
int |
getDimensionality()
The dimensionality of the vector space whereof this FeatureVector is an element. |
Matrix |
getRowVector()
Returns a Matrix representing in one row and getDimensionality() columns the values of this
FeatureVector. |
N |
getValue(int dimension)
Returns the value in the specified dimension. |
V |
multiplicate(double k)
Returns a new FeatureVector that is the result of a scalar multiplication with the given scalar. |
V |
negativeVector()
Returns the additive inverse to this FeatureVector. |
V |
newInstance(N[] values)
Returns a new FeatureVector of T for the given values. |
V |
nullVector()
Provides a null vector of the same Feature Vector Space as this FeatureVector (that is, of the same dimensionality). |
V |
plus(V fv)
Returns a new FeatureVector that is the sum of this FeatureVector and the given FeatureVector. |
V |
randomInstance(N min,
N max,
Random random)
Returns a FeatureVector of T with random values between min and max. |
V |
randomInstance(Random random)
Returns a FeatureVector of T with uniformly distributed (0-1) random values. |
String |
toString()
Returns a String representation of the FeatureVector 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) throws SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException
values
- the values of the featureVector
NoSuchMethodException
SecurityException
InvocationTargetException
IllegalAccessException
InstantiationException
IllegalArgumentException
V randomInstance(Random random)
random
- a Random instance
V randomInstance(N min, N max, Random random)
min
- minimum of random valuemax
- maximu of random valuerandom
- 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.
getDimensionality()
rows the values of this
FeatureVectorMatrix getRowVector()
getDimensionality()
columns the values of this
FeatureVector.
getDimensionality()
columns the values of this
FeatureVectorV plus(V fv)
fv
- a FeatureVector to be added to this Featurevector
V nullVector()
V negativeVector()
V multiplicate(double k)
k
- a scalar to multiply this FeatureVector with
String toString()
toString
in class Object
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |