LegoAgent-Eve
Vector Class Reference

Hilfsklasse fuer SVM Implementierung Stellt Vector und Rechenmethoden fuer Vectoren zur Verfuegung. More...

Public Member Functions

 Vector (double x, double y)
 
double getX ()
 
double getY ()
 
Vector multiply (double a)
 
String toString ()
 

Static Public Member Functions

static Vector subtract (Vector a, Vector b)
 
static Vector add (Vector a, Vector b)
 
static Vector getOrthogonal (Vector toInvert)
 
static double[] linearcombination (Vector vector1, Vector vector2, Vector destination)
 Berechne Linearkombination von vektorA und vectorB zu vectorC a * vectorA + b * vectorB = vectorC. More...
 

Private Attributes

double x
 
double y
 

Detailed Description

Hilfsklasse fuer SVM Implementierung Stellt Vector und Rechenmethoden fuer Vectoren zur Verfuegung.

Constructor & Destructor Documentation

Vector ( double  x,
double  y 
)

References Vector.x, and Vector.y.

Referenced by Vector.add(), Vector.getOrthogonal(), Vector.multiply(), and Vector.subtract().

Here is the caller graph for this function:

Member Function Documentation

static Vector add ( Vector  a,
Vector  b 
)
static

References Vector.getX(), Vector.getY(), and Vector.Vector().

Referenced by SVM.computeSeparator().

Here is the call graph for this function:

Here is the caller graph for this function:

static Vector getOrthogonal ( Vector  toInvert)
static

References Vector.getX(), Vector.getY(), and Vector.Vector().

Referenced by SVM.computeSeparator().

Here is the call graph for this function:

Here is the caller graph for this function:

double getX ( )

References Vector.x.

Referenced by Vector.add(), Vector.getOrthogonal(), Vector.linearcombination(), Vector.subtract(), and Vector.toString().

Here is the caller graph for this function:

double getY ( )

References Vector.y.

Referenced by Vector.add(), Vector.getOrthogonal(), Vector.linearcombination(), Vector.subtract(), and Vector.toString().

Here is the caller graph for this function:

static double [] linearcombination ( Vector  vector1,
Vector  vector2,
Vector  destination 
)
static

Berechne Linearkombination von vektorA und vectorB zu vectorC a * vectorA + b * vectorB = vectorC.

Mit Mathe-Magie ergibt sich:

        x3
y3 -  ------  *  y2
        x2

a = ------------------— x1 y1 - ---— * y2 x2

und

 x3 - a  * x1

b = ---------------— x2

returns double{a, b}

References Vector.getX(), and Vector.getY().

Referenced by SVM.classify(), and SVM.computeSeparator().

Here is the call graph for this function:

Here is the caller graph for this function:

Vector multiply ( double  a)

References Vector.Vector().

Referenced by SVM.computeSeparator().

Here is the call graph for this function:

Here is the caller graph for this function:

static Vector subtract ( Vector  a,
Vector  b 
)
static

References Vector.getX(), Vector.getY(), and Vector.Vector().

Referenced by SVM.classify(), and SVM.computeSeparator().

Here is the call graph for this function:

Here is the caller graph for this function:

String toString ( )

References Vector.getX(), and Vector.getY().

Here is the call graph for this function:

Member Data Documentation

double x
private

Referenced by Vector.getX(), and Vector.Vector().

double y
private

Referenced by Vector.getY(), and Vector.Vector().


The documentation for this class was generated from the following file: