Klasse Vector
java.lang.Object
ch.nolix.core.math.algebra.Vector
-
Feldübersicht
Felder -
Methodenübersicht
Modifikator und TypMethodeBeschreibungbooleanstatic VectorfromArray(double[] values) doubledoublegetProduct(double factor) intgetSize()doublegetValueAtOneBasedIndex(int oneBasedIndex) inthashCode()booleanhasSameSizeAs(Vector vector) double[]toArray()toString()static VectorwithValue(double value, double... values) static VectorwithValues(double[] values)
-
Felddetails
-
EMPTY_VECTOR
-
-
Methodendetails
-
fromArray
-
withValue
-
withValues
-
equals
-
getEuclidNorm
public double getEuclidNorm()- Gibt zurück:
- the euclid norm of the current
Vector.
-
getManhattanNorm
public double getManhattanNorm()- Gibt zurück:
- the Manhattan norm of the current
Vector.
-
getProduct
-
getSize
public int getSize()- Gibt zurück:
- the size of the current
Vector.
-
getSum
-
getValueAtOneBasedIndex
public double getValueAtOneBasedIndex(int oneBasedIndex) - Parameter:
oneBasedIndex-- Gibt zurück:
- the value of the current
Vectorat the given oneBasedIndex. - Löst aus:
ArgumentIsOutOfRangeException- if the given oneBasedIndex is not positive or the given oneBasedIndex is bigger than the size of the currentVector.
-
hashCode
-
hasSameSizeAs
-
toArray
public double[] toArray()- Gibt zurück:
- an array with the values of the current
Vector
-
toString
-