package de.lmu.ifi.dbs.elki.varianceanalysis;

import de.lmu.ifi.dbs.elki.math.linearalgebra.EigenPair;

import java.util.List;

/**
 * Encapsulates weak and stromg eigenpairs that have been filtered out
 * by an eigenpair filter.
 *
 * @author Elke Achtert 
 */
public class FilteredEigenPairs {
  /**
   * The weak eigenpairs.
   */
  private final List<EigenPair> weakEigenPairs;

  /**
   * The strong eigenpairs.
   */
  private final List<EigenPair> strongEigenPairs;

  /**
   * Creates a new object that encapsulates weak and stromg eigenpairs
   * that have been filtered out by an eigenpair filter
   *
   * @param weakEigenPairs the weak eigenpairs
   * @param strongEigenPairs the strong eigenpairs
   */
  public FilteredEigenPairs(List<EigenPair> weakEigenPairs, List<EigenPair> strongEigenPairs) {
    this.weakEigenPairs = weakEigenPairs;
    this.strongEigenPairs = strongEigenPairs;
  }

  /**
   * Returns the weak eigenpairs.
   * @return the weak eigenpairs
   */
  public List<EigenPair> getWeakEigenPairs() {
    return weakEigenPairs;
  }

  /**
   * Returns the strong eigenpairs.
   * @return the strong eigenpairs
   */
  public List<EigenPair> getStrongEigenPairs() {
    return strongEigenPairs;
  }

  /**
   * Returns a string representation of the object.
   *
   * @return a string representation of the object.
   */
  public String toString() {
    return "weak EP: " + weakEigenPairs + "\nstrong EP: " + strongEigenPairs;
  }
}

@@ -929,32 +929,42 @@
  weak eigenpairs
+ (no copy)
 .%0A   * @return t
@@ -1059,32 +1059,198 @@
 igenPairs;%0A  %7D%0A%0A
+  /**%0A   * Counts the strong eigenpairs.%0A   * @return number of strong eigenpairs%0A   */%0A  public int countWeakEigenPairs() %7B%0A    return strongEigenPairs.size();%0A  %7D%0A%0A
   /**%0A   * Retur
@@ -1265,32 +1265,42 @@
 trong eigenpairs
+ (no copy)
 .%0A   * @return t
@@ -1399,32 +1399,202 @@
 gEigenPairs;%0A  %7D
+%0A  %0A  /**%0A   * Counts the strong eigenpairs.%0A   * @return number of strong eigenpairs%0A   */%0A  public int countStrongEigenPairs() %7B%0A    return strongEigenPairs.size();%0A  %7D
 %0A%0A  /**%0A   * Ret

add count{Weak,Strong}EigenPairs accessors. clarify that the get{Weak,Strong}EigenPairs do not return a copy.