Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for leastSquaresFit (0.1 seconds)

  1. android/guava-tests/test/com/google/common/math/PairedStatsTest.java

        assertThrows(IllegalStateException.class, EMPTY_PAIRED_STATS::leastSquaresFit);
        assertThrows(IllegalStateException.class, ONE_VALUE_PAIRED_STATS::leastSquaresFit);
        assertThrows(
            IllegalStateException.class,
            () -> createSingleStats(Double.POSITIVE_INFINITY, 1.23).leastSquaresFit());
        assertDiagonalLinearTransformation(
            TWO_VALUES_PAIRED_STATS.leastSquaresFit(),
            TWO_VALUES_PAIRED_STATS.xStats().mean(),
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 14.1K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/math/PairedStatsTest.java

        assertThrows(IllegalStateException.class, EMPTY_PAIRED_STATS::leastSquaresFit);
        assertThrows(IllegalStateException.class, ONE_VALUE_PAIRED_STATS::leastSquaresFit);
        assertThrows(
            IllegalStateException.class,
            () -> createSingleStats(Double.POSITIVE_INFINITY, 1.23).leastSquaresFit());
        assertDiagonalLinearTransformation(
            TWO_VALUES_PAIRED_STATS.leastSquaresFit(),
            TWO_VALUES_PAIRED_STATS.xStats().mean(),
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 14.1K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/math/PairedStatsAccumulator.java

       * @throws IllegalStateException if the dataset is empty or contains a single pair of values, or
       *     both the {@code x} and {@code y} dataset have zero population variance
       */
      public final LinearTransformation leastSquaresFit() {
        checkState(count() > 1);
        if (isNaN(sumOfProductsOfDeltas)) {
          return LinearTransformation.forNaN();
        }
        double xSumOfSquaresOfDeltas = xStats.sumOfSquaresOfDeltas();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/math/PairedStats.java

       * @throws IllegalStateException if the dataset is empty or contains a single pair of values, or
       *     both the {@code x} and {@code y} dataset must have zero population variance
       */
      public LinearTransformation leastSquaresFit() {
        checkState(count() > 1);
        if (isNaN(sumOfProductsOfDeltas)) {
          return LinearTransformation.forNaN();
        }
        double xSumOfSquaresOfDeltas = xStats.sumOfSquaresOfDeltas();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

      public void testLeastSquaresFit() {
        assertThrows(IllegalStateException.class, () -> emptyAccumulator.leastSquaresFit());
        assertThrows(
            IllegalStateException.class,
            () -> emptyAccumulatorByAddAllEmptyPairedStats.leastSquaresFit());
        assertThrows(IllegalStateException.class, () -> oneValueAccumulator.leastSquaresFit());
        assertThrows(
            IllegalStateException.class,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 23.5K bytes
    - Click Count (0)
Back to Top