gov.sandia.cognition.math.matrix
Interface Vector1D

All Superinterfaces:
Cloneable, CloneableSerializable, Iterable<VectorEntry>, Ring<Vector>, Serializable, Vector, Vectorizable, VectorSpace<Vector,VectorEntry>
All Known Implementing Classes:
Vector1

public interface Vector1D
extends Vector

An interface for a 1-dimensional vector. Adds convenience methods for accessing the one value (x).

Since:
3.0
Author:
Justin Basilico

Nested Class Summary
 
Nested classes/interfaces inherited from interface gov.sandia.cognition.math.matrix.VectorSpace
VectorSpace.Entry
 
Method Summary
 double getX()
          Gets the value of the first (and only) dimension (x).
 void setX(double x)
          Sets the value of the first (and only) dimension (x).
 
Methods inherited from interface gov.sandia.cognition.math.matrix.Vector
assertDimensionalityEquals, assertSameDimensionality, checkSameDimensionality, clone, dotDivide, dotDivideEquals, getDimensionality, getElement, isSparse, outerProduct, setElement, stack, subVector, times, toArray, toString, toString, toString, transform, transformEquals, transformNonZeros, transformNonZerosEquals
 
Methods inherited from interface gov.sandia.cognition.math.matrix.VectorSpace
angle, cosine, dotProduct, euclideanDistance, euclideanDistanceSquared, isUnitVector, isUnitVector, norm, norm1, norm2, norm2Squared, normInfinity, sum, unitVector, unitVectorEquals
 
Methods inherited from interface gov.sandia.cognition.math.Ring
dotTimes, dotTimesEquals, equals, equals, isZero, isZero, minus, minusEquals, negative, negativeEquals, plus, plusEquals, scale, scaledMinus, scaledMinusEquals, scaledPlus, scaledPlusEquals, scaleEquals, zero
 
Methods inherited from interface java.lang.Iterable
iterator
 
Methods inherited from interface gov.sandia.cognition.math.matrix.Vectorizable
convertFromVector, convertToVector
 

Method Detail

getX

double getX()
Gets the value of the first (and only) dimension (x).

Returns:
The value of the first dimension (x).

setX

void setX(double x)
Sets the value of the first (and only) dimension (x).

Parameters:
x - The value for the first dimension (x).