/**
 * Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
 * 
 * Please see distribution for license.
 */
package com.opengamma.analytics.math.statistics.leastsquare;

import com.opengamma.analytics.math.matrix.DoubleMatrix1D;
import com.opengamma.analytics.math.matrix.DoubleMatrix2D;

/**
 * 
 */
public class LeastSquareWithPenaltyResults extends LeastSquareResults {
  private final double _penalty;

  public LeastSquareWithPenaltyResults(final double chiSq, final double penalty, final DoubleMatrix1D parameters, final DoubleMatrix2D covariance) {
    super(chiSq, parameters, covariance);
    _penalty = penalty;
  }

  public LeastSquareWithPenaltyResults(final double chiSq, final double penalty, final DoubleMatrix1D parameters, final DoubleMatrix2D covariance, final DoubleMatrix2D inverseJacobian) {
    super(chiSq, parameters, covariance, inverseJacobian);
    _penalty = penalty;
  }

  public double getPenalty() {
    return _penalty;
  }
}

@@ -320,16 +320,75 @@
 %0A/**%0A * 
+Hold for results of %7B@link NonLinearLeastSquareWithPenalty%7D
 %0A */%0Apub
@@ -521,38 +521,32 @@
 hPenaltyResults(
-final 
 double chiSq, fi
@@ -534,38 +534,32 @@
 ts(double chiSq,
- final
  double penalty,
@@ -550,38 +550,32 @@
  double penalty,
- final
  DoubleMatrix1D 
@@ -577,38 +577,38 @@
 ix1D parameters,
- final
+%0A     
  DoubleMatrix2D 
@@ -731,22 +731,16 @@
 Results(
-final 
 double c
@@ -744,22 +744,16 @@
 e chiSq,
- final
  double 
@@ -760,22 +760,16 @@
 penalty,
- final
  DoubleM
@@ -787,22 +787,22 @@
 ameters,
- final
+%0A     
  DoubleM
@@ -820,22 +820,16 @@
 ariance,
- final
  DoubleM

remove final