Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for SUM (0.01 sec)

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

      }
    
      public void testSum() {
        assertThat(emptyAccumulator.sum()).isEqualTo(0.0);
        assertThat(emptyAccumulatorByAddAllEmptyIterable.sum()).isEqualTo(0.0);
        assertThat(emptyAccumulatorByAddAllEmptyStats.sum()).isEqualTo(0.0);
        assertThat(oneValueAccumulator.sum()).isWithin(ALLOWED_ERROR).of(ONE_VALUE);
        assertThat(oneValueAccumulatorByAddAllEmptyStats.sum()).isWithin(ALLOWED_ERROR).of(ONE_VALUE);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  2. cmd/encryption-v1_test.go

    			}
    			return a
    		}
    		lsum = func(s []int64) int64 {
    			sum := int64(0)
    			for _, i := range s {
    				if i < 0 {
    					return -1
    				}
    				sum += i
    			}
    			return sum
    		}
    		esum = func(oi ObjectInfo) int64 {
    			sum := int64(0)
    			for _, i := range oi.Parts {
    				sum += i.Size
    			}
    			return sum
    		}
    	)
    
    	s1 := []int64{5487701, 5487799, 3}
    	s2 := repeat(5487701, 5)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 19.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

      public void removeAllZeros() {
        map.values().removeIf(x -> x == 0);
      }
    
      /**
       * 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() {
        return map.values().stream().mapToLong(Long::longValue).sum();
      }
    
      @LazyInit private transient @Nullable Map<K, Long> asMap;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SSPContextTest.java

                    throw new CIFSException("data is null");
                }
                // Trivial MIC: 1-byte sum of all unsigned bytes
                int sum = 0;
                for (byte b : data) {
                    sum = (sum + (b & 0xFF)) & 0xFF;
                }
                return new byte[] { (byte) sum };
            }
    
            @Override
            public void verifyMIC(byte[] data, byte[] mic) throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  5. tests/joins_test.go

    	iv := DB.Table(`table_invoices`).Select(`seller, SUM(total) as total, SUM(paid) as paid, SUM(balance) as balance`).Group(`seller`)
    	stmt = dryDB.Table(`table_employees`).Select(`id, name, iv.total, iv.paid, iv.balance`).Joins(`LEFT JOIN (?) AS iv ON iv.seller = table_employees.id`, iv).Scan(&user).Statement
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 15K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/TableCollectorsTest.java

      public void testToImmutableTableMerging() {
        Collector<Cell<String, String, Integer>, ?, ImmutableTable<String, String, Integer>> collector =
            toImmutableTable(Cell::getRowKey, Cell::getColumnKey, Cell::getValue, Integer::sum);
        BiPredicate<ImmutableTable<String, String, Integer>, ImmutableTable<String, String, Integer>>
            equivalence = pairwiseOnResultOf(ImmutableTable::cellSet);
        CollectorTester.of(collector, equivalence)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MultisetsTest.java

        Multiset<String> ms2 = HashMultiset.create(asList("b", "c"));
        assertThat(sum(ms1, ms2)).containsExactly("a", "a", "b", "b", "c");
      }
    
      public void testSumEmptyNonempty() {
        Multiset<String> ms1 = HashMultiset.create();
        Multiset<String> ms2 = HashMultiset.create(asList("a", "b", "a"));
        assertThat(sum(ms1, ms2)).containsExactly("a", "b", "a");
      }
    
      public void testSumNonemptyEmpty() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        }
      }
    
      /** getAndAccumulate with sum adds given value to current, and returns previous value */
      public void testGetAndAccumulateWithSum() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int i : new int[] {0, SIZE - 1}) {
          for (double x : VALUES) {
            for (double y : VALUES) {
              aa.set(i, x);
              double z = aa.getAndAccumulate(i, y, Double::sum);
              assertBitEquals(x, z);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  9. cmd/metrics-resource.go

    		metric.Cumulative = val
    	} else {
    		metric.Current = val
    	}
    
    	if metric.Current > metric.Max {
    		metric.Max = val
    	}
    
    	metric.Sum += metric.Current
    	metric.Count++
    
    	metric.Avg = metric.Sum / float64(metric.Count)
    	subsysMetrics[key] = metric
    
    	resourceMetricsMap[subSys] = subsysMetrics
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  10. src/main/assemblies/extension/kibana/fess_log.ndjson

    "version":1,"visState":"{\"title\":\"search-term-rank\",\"type\":\"table\",\"params\":{\"perPage\":10,\"showPartialRows\":false,\"showMetricsAtAllLevels\":false,\"sort\":{\"columnIndex\":null,\"direction\":null},\"showTotal\":false,\"totalFunc\":\"sum\",\"dimensions\":{\"metrics\":[{\"accessor\":0,\"format\":{\"id\":\"number\"},\"params\":{},\"aggType\":\"count\"}],\"buckets\":[]}},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{}},{\"id\":\"2\",\"en...
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Mon Aug 12 01:26:21 UTC 2019
    - 18.2K bytes
    - Viewed (0)
Back to top