Browse Source

Leo: Alle Beschreibungen gefüllt

master
fdai7303 6 months ago
parent
commit
fa6db048ad
  1. 18
      SparseVector.java

18
SparseVector.java

@ -4,7 +4,7 @@
public class SparseVector { public class SparseVector {
/** /**
* [Beschreibung]
* Hilfsklasse, welche ein einzelnes Node repräsentiert.
* *
* @author Paul * @author Paul
*/ */
@ -52,8 +52,8 @@ public class SparseVector {
* wenn der head an dem Index nicht existiert * wenn der head an dem Index nicht existiert
* *
* @author Elif * @author Elif
* @param index [Beschreibung]
* @param value [Beschreibung]
* @param index Index des zu setzenden Wertes
* @param value Wert, welcher eingesetzt werden soll
*/ */
public void setElement(int index, double value) { public void setElement(int index, double value) {
@ -95,8 +95,8 @@ public class SparseVector {
* entsprechenden Wert des Index * entsprechenden Wert des Index
* *
* @author Paul * @author Paul
* @param index [Beschreibung]
* @return double [Beschreibung]
* @param index Stelle, an der der Wert steht
* @return double Wert des Elements
*/ */
public double getElement(int index) { public double getElement(int index) {
@ -121,7 +121,7 @@ public class SparseVector {
* entfernt Element nach Index * entfernt Element nach Index
* *
* @author Leonhard * @author Leonhard
* @param index [Beschreibung]
* @param index Stelle des zu entferneden Elements
*/ */
public void removeElement(int index) { public void removeElement(int index) {
// previous = pre // previous = pre
@ -164,8 +164,8 @@ public class SparseVector {
* testen, ob other = this (nur vergleichen die Nicht-Null Elemente) * testen, ob other = this (nur vergleichen die Nicht-Null Elemente)
* *
* @author Terry * @author Terry
* @param other [Beschreibung]
* @return boolean [Beschreibung]
* @param other Anderer Vektor, mit dem verglichen wird
* @return boolean Wahrheitswert, ob Vektoren gleich sind
*/ */
public boolean equals(SparseVector other) { public boolean equals(SparseVector other) {
@ -204,7 +204,7 @@ public class SparseVector {
* to add two vectors together and renew (overwrite) the this.vector * to add two vectors together and renew (overwrite) the this.vector
* *
* @author Terry * @author Terry
* @param other [Beschreibung]
* @param other Anderer Vektor, der auf addiert wird
*/ */
public void add(SparseVector other) { public void add(SparseVector other) {

Loading…
Cancel
Save