Class VectorImpl
- java.lang.Object
-
- de.uni_trier.wi2.procake.similarity.nest.sequence.utils.impl.VectorImpl
-
-
Constructor Summary
Constructors Constructor Description VectorImpl(double... values)VectorImpl(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vectoradd(Vector v2)Add a vector to this vector.doubleget(int idx)Get the value of the vector at a specified position.intgetSize()Get the size of the vector.doublemax()The maximum value of the vector.intmaxIdx()Index at which the vector holds its maximum value.voidset(int idx, double value)Set the value at a specified position.Vectortimes(double val)Multiplication to a scalar.
-
-
-
Method Detail
-
add
public Vector add(Vector v2)
Description copied from interface:VectorAdd a vector to this vector.
-
times
public Vector times(double val)
Description copied from interface:VectorMultiplication to a scalar.
-
maxIdx
public int maxIdx()
Description copied from interface:VectorIndex at which the vector holds its maximum value.
-
max
public double max()
Description copied from interface:VectorThe maximum value of the vector.
-
get
public double get(int idx)
Description copied from interface:VectorGet the value of the vector at a specified position.
-
set
public void set(int idx, double value)Description copied from interface:VectorSet the value at a specified position.
-
-