Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for SUM (3.07 sec)

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

      public void testSum() {
        assertThat(emptyAccumulator.sum()).isWithin(0.0).of(0.0);
        assertThat(emptyAccumulatorByAddAllEmptyIterable.sum()).isWithin(0.0).of(0.0);
        assertThat(emptyAccumulatorByAddAllEmptyStats.sum()).isWithin(0.0).of(0.0);
        assertThat(oneValueAccumulator.sum()).isWithin(ALLOWED_ERROR).of(ONE_VALUE);
        assertThat(oneValueAccumulatorByAddAllEmptyStats.sum()).isWithin(ALLOWED_ERROR).of(ONE_VALUE);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 34K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/StatsTest.java

      }
    
      public void testSum() {
        assertThat(EMPTY_STATS_VARARGS.sum()).isEqualTo(0.0);
        assertThat(EMPTY_STATS_ITERABLE.sum()).isEqualTo(0.0);
        assertThat(ONE_VALUE_STATS.sum()).isWithin(ALLOWED_ERROR).of(ONE_VALUE);
        assertThat(TWO_VALUES_STATS.sum()).isWithin(ALLOWED_ERROR).of(TWO_VALUES_MEAN * 2);
        assertThat(MANY_VALUES_STATS_VARARGS.sum())
            .isWithin(ALLOWED_ERROR)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

      public void testSum() {
        assertThat(emptyAccumulator.sum()).isWithin(0.0).of(0.0);
        assertThat(emptyAccumulatorByAddAllEmptyIterable.sum()).isWithin(0.0).of(0.0);
        assertThat(emptyAccumulatorByAddAllEmptyStats.sum()).isWithin(0.0).of(0.0);
        assertThat(oneValueAccumulator.sum()).isWithin(ALLOWED_ERROR).of(ONE_VALUE);
        assertThat(oneValueAccumulatorByAddAllEmptyStats.sum()).isWithin(ALLOWED_ERROR).of(ONE_VALUE);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 36.5K bytes
    - Viewed (0)
  4. internal/hash/reader.go

    				return 0, SizeTooLarge{Want: r.expectedMax, Got: r.bytesRead}
    			}
    		}
    
    		if r.sha256 != nil {
    			if sum := r.sha256.Sum(nil); !bytes.Equal(r.contentSHA256, sum) {
    				return n, SHA256Mismatch{
    					ExpectedSHA256:   hex.EncodeToString(r.contentSHA256),
    					CalculatedSHA256: hex.EncodeToString(sum),
    				}
    			}
    		}
    		if r.contentHasher != nil {
    			if r.contentHash.Type.Trailing() {
    				var err error
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/StatsTest.java

      }
    
      public void testSum() {
        assertThat(EMPTY_STATS_VARARGS.sum()).isEqualTo(0.0);
        assertThat(EMPTY_STATS_ITERABLE.sum()).isEqualTo(0.0);
        assertThat(ONE_VALUE_STATS.sum()).isWithin(ALLOWED_ERROR).of(ONE_VALUE);
        assertThat(TWO_VALUES_STATS.sum()).isWithin(ALLOWED_ERROR).of(TWO_VALUES_MEAN * 2);
        assertThat(MANY_VALUES_STATS_VARARGS.sum())
            .isWithin(ALLOWED_ERROR)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 32.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

          }
        }
      }
    
      /**
       * Returns the sum of all values in this map.
       *
       * <p>This method is not atomic: the sum may or may not include other concurrent operations.
       */
      public long sum() {
        long sum = 0L;
        for (AtomicLong value : map.values()) {
          sum = sum + value.get();
        }
        return sum;
      }
    
      @LazyInit @CheckForNull private transient Map<K, Long> asMap;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

            .isWithin(ALLOWED_ERROR)
            .of(TWO_VALUES_SUM_OF_PRODUCTS_OF_DELTAS / 2);
        assertThat(twoValuesAccumulatorByAddAllPartitionedPairedStats.populationCovariance())
            .isWithin(ALLOWED_ERROR)
            .of(TWO_VALUES_SUM_OF_PRODUCTS_OF_DELTAS / 2);
        assertThat(manyValuesAccumulator.populationCovariance())
            .isWithin(ALLOWED_ERROR)
            .of(MANY_VALUES_SUM_OF_PRODUCTS_OF_DELTAS / MANY_VALUES_COUNT);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 23.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

            .isWithin(ALLOWED_ERROR)
            .of(TWO_VALUES_SUM_OF_PRODUCTS_OF_DELTAS / 2);
        assertThat(twoValuesAccumulatorByAddAllPartitionedPairedStats.populationCovariance())
            .isWithin(ALLOWED_ERROR)
            .of(TWO_VALUES_SUM_OF_PRODUCTS_OF_DELTAS / 2);
        assertThat(manyValuesAccumulator.populationCovariance())
            .isWithin(ALLOWED_ERROR)
            .of(MANY_VALUES_SUM_OF_PRODUCTS_OF_DELTAS / MANY_VALUES_COUNT);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 23.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/PairedStatsAccumulator.java

        // We define the arithmetic means X_n = 1/n \sum_{i=1}^n x_i, and Y_n = 1/n \sum_{i=1}^n y_i.
        // We also define the sum of the products of the differences from the means
        //           C_n = \sum_{i=1}^n x_i y_i - n X_n Y_n
        // for all n >= 1. Then for all n > 1:
        //       C_{n-1} = \sum_{i=1}^{n-1} x_i y_i - (n-1) X_{n-1} Y_{n-1}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  10. manifests/addons/dashboards/istio-performance-dashboard.json

            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
              },
              "expr": "sum(irate(istio_response_bytes_sum{source_workload_namespace!=\"istio-system\", reporter=\"source\"}[1m])) + sum(irate(istio_request_bytes_sum{source_workload_namespace!=\"istio-system\", reporter=\"source\"}[1m]))",
              "format": "time_series",
              "intervalFactor": 1,
    Json
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 03:47:04 GMT 2024
    - 39.6K bytes
    - Viewed (0)
Back to top