Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for LinearTransformation (0.09 seconds)

  1. android/guava/src/com/google/common/math/LinearTransformation.java

       * always return that original instance.
       */
      public abstract LinearTransformation inverse();
    
      private static final class RegularLinearTransformation extends LinearTransformation {
    
        final double slope;
        final double yIntercept;
    
        @LazyInit @Nullable LinearTransformation inverse;
    
        RegularLinearTransformation(double slope, double yIntercept) {
          this.slope = slope;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/math/LinearTransformationTest.java

        double x1 = 1.2;
        double y = 5.6;
        LinearTransformation transformation = LinearTransformation.mapping(x1, y).withSlope(0.0);
        assertHorizontalLinearTransformation(transformation, y);
      }
    
      public void testMappingWithSlope_vertical() {
        double x = 1.2;
        double y1 = 3.4;
        LinearTransformation transformation =
            LinearTransformation.mapping(x, y1).withSlope(Double.POSITIVE_INFINITY);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/math/LinearTransformationTest.java

        double x1 = 1.2;
        double y = 5.6;
        LinearTransformation transformation = LinearTransformation.mapping(x1, y).withSlope(0.0);
        assertHorizontalLinearTransformation(transformation, y);
      }
    
      public void testMappingWithSlope_vertical() {
        double x = 1.2;
        double y1 = 3.4;
        LinearTransformation transformation =
            LinearTransformation.mapping(x, y1).withSlope(Double.POSITIVE_INFINITY);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/math/StatsTesting.java

       * assertions about all the public instance methods of {@link LinearTransformation}, including an
       * assertion that {@link LinearTransformation#transform} and {@link LinearTransformation#slope} on
       * its inverse throws as expected.
       */
      static void assertHorizontalLinearTransformation(LinearTransformation transformation, double y) {
        assertThat(transformation.isHorizontal()).isTrue();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 24K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/math/StatsTesting.java

       * assertions about all the public instance methods of {@link LinearTransformation}, including an
       * assertion that {@link LinearTransformation#transform} and {@link LinearTransformation#slope} on
       * its inverse throws as expected.
       */
      static void assertHorizontalLinearTransformation(LinearTransformation transformation, double y) {
        assertThat(transformation.isHorizontal()).isTrue();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 24K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/math/PairedStatsAccumulator.java

        }
        double xSumOfSquaresOfDeltas = xStats.sumOfSquaresOfDeltas();
        if (xSumOfSquaresOfDeltas > 0.0) {
          if (yStats.sumOfSquaresOfDeltas() > 0.0) {
            return LinearTransformation.mapping(xStats.mean(), yStats.mean())
                .withSlope(sumOfProductsOfDeltas / xSumOfSquaresOfDeltas);
          } else {
            return LinearTransformation.horizontal(yStats.mean());
          }
        } else {
    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)
  7. android/guava/src/com/google/common/math/PairedStats.java

        }
        double xSumOfSquaresOfDeltas = xStats.sumOfSquaresOfDeltas();
        if (xSumOfSquaresOfDeltas > 0.0) {
          if (yStats.sumOfSquaresOfDeltas() > 0.0) {
            return LinearTransformation.mapping(xStats.mean(), yStats.mean())
                .withSlope(sumOfProductsOfDeltas / xSumOfSquaresOfDeltas);
          } else {
            return LinearTransformation.horizontal(yStats.mean());
          }
        } else {
    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)
  8. guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

          PairedStatsAccumulator accumulatorByAddAllPartitionedPairedStats =
              createPartitionedFilledPairedStatsAccumulator(values.asIterable(), OTHER_MANY_VALUES, 2);
          LinearTransformation fit = accumulator.leastSquaresFit();
          LinearTransformation fitByAddAllPartitionedPairedStats =
              accumulatorByAddAllPartitionedPairedStats.leastSquaresFit();
          if (values.hasAnyNonFinite()) {
            assertLinearTransformationNaN(fit);
    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)
  9. android/guava-tests/test/com/google/common/math/PairedStatsTest.java

        // x-values:
        for (ManyValues values : ALL_MANY_VALUES) {
          PairedStats stats = createPairedStatsOf(values.asIterable(), OTHER_MANY_VALUES);
          LinearTransformation fit = stats.leastSquaresFit();
          if (values.hasAnyNonFinite()) {
            assertLinearTransformationNaN(fit);
          } else {
            assertDiagonalLinearTransformation(
                fit,
    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)
  10. guava-tests/test/com/google/common/math/PairedStatsTest.java

        // x-values:
        for (ManyValues values : ALL_MANY_VALUES) {
          PairedStats stats = createPairedStatsOf(values.asIterable(), OTHER_MANY_VALUES);
          LinearTransformation fit = stats.leastSquaresFit();
          if (values.hasAnyNonFinite()) {
            assertLinearTransformationNaN(fit);
          } else {
            assertDiagonalLinearTransformation(
                fit,
    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)
Back to Top