/guava/guava/src/com/google/common/math/PairedStats.java
return ensureInUnitRange( sumOfProductsOfDeltas / Math.sqrt( productOfSumsOfSquaresOfDeltas) ) ; ensurePositive( xSumOfSquaresOfDeltas * ySumOfSquaresOfDeltas) ;
ensurePositive ( xSumOfSquaresOfDeltas * ySumOfSquaresOfDeltas ) ; return ensureInUnitRange ( sumOfProductsOfDeltas / Math.sqrt ( productOfSumsOfSquaresOfDeltas ) ) ;
} double xSumOfSquaresOfDeltas = xStats().sumOfSquaresOfDeltas(); double ySumOfSquaresOfDeltas = yStats().sumOfSquaresOfDeltas(); checkState(xSumOfSquaresOfDeltas > 0.0); checkState(ySumOfSquaresOfDeltas > 0.0); double productOfSumsOfSquaresOfDeltas = <extra_id_0> } public LinearTransformation leastSquaresFit() { checkState(count() > 1); if (isNaN(sumOfProductsOfDeltas)) { return LinearTransformation.forNaN(); }