public Matrix getResult()

in src/main/java/org/apache/datasketches/vector/decomposition/FrequentDirections.java [348:362]


  public Matrix getResult(final boolean compensative) {
    if (isEmpty()) {
      return null;
    }

    if (compensative) {
      if (svd_ == null) {
        svd_ = MatrixOps.newInstance(B_, algo_, k_);
      }

      return svd_.applyAdjustment(B_, svAdjustment_);
    } else {
      return B_;
    }
  }