Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for Frequencies (0.07 seconds)

  1. src/main/java/org/codelibs/fess/suggest/entity/SuggestItemMerger.java

    /**
     * Utility class for merging SuggestItem objects.
     * Centralizes merge logic to reduce complexity in SuggestItem.
     *
     * <p>This class provides methods for merging two SuggestItem instances,
     * combining their fields, frequencies, and other attributes while
     * maintaining uniqueness where appropriate.
     */
    public final class SuggestItemMerger {
    
        private SuggestItemMerger() {
            // Utility class
        }
    
        /**
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java

            assertNotNull(merged);
            assertEquals("item1", merged.getText());
            assertEquals(150L, merged.getQueryFreq()); // Sum of frequencies
            assertEquals(75L, merged.getDocFreq()); // Sum of frequencies
            assertEquals(1.5f, merged.getUserBoost(), 0.001f); // Takes item2's boost
    
            // Check merged arrays contain both items' values
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Sep 01 13:33:03 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/suggest/index/writer/SuggestIndexWriterTest.java

            assertNotNull(result);
            assertFalse(result.hasFailure());
    
            runner.refresh();
    
            // Verify the item was updated (should have merged frequencies)
            GetResponse getResponse =
                    runner.client().prepareGet().setIndex(suggester.getIndex()).setId(item.getId()).get(TimeValue.timeValueSeconds(30));
            assertTrue(getResponse.isExists());
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 18.3K bytes
    - Click Count (0)
  4. compat/maven-model/src/test/java/org/apache/maven/model/pom/PomMemoryAnalyzer.java

                // Add path to its group
                groupedPaths.computeIfAbsent(finalComponent, k -> new ArrayList<>()).add(path);
    
                // Aggregate value frequencies for the group
                Map<String, Long> groupFreqs = groupValueFrequencies.computeIfAbsent(finalComponent, k -> new HashMap<>());
                for (ValueFrequency vf : path.mostFrequentValues) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 13.4K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java

    /**
     * The SuggestItem class represents an item used for suggestions in the Fess search engine.
     * It contains various attributes such as text, readings, fields, tags, roles, languages, kinds, and frequencies.
     * The class provides methods to manipulate and retrieve these attributes, as well as to convert the item to and from different formats.
     */
    public class SuggestItem {
    
        /**
         * The kind of suggest item.
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 13.5K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemBoundaryTest.java

        }
    
        @Test
        public void test_negativeFrequencies() {
            String[] text = { "test" };
            String[][] readings = { { "test" } };
    
            // Negative frequencies might be allowed (though unusual)
            SuggestItem item = new SuggestItem(text, readings, null, -1L, -1L, 1.0f, null, null, null, SuggestItem.Kind.QUERY);
    
            assertEquals(-1L, item.getDocFreq());
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Jan 17 05:10:37 GMT 2026
    - 22.2K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/ImmutableMultimap.java

      }
    
      /**
       * Returns an immutable multiset containing all the keys in this multimap, in the same order and
       * with the same frequencies as they appear in this multimap; to get only a single occurrence of
       * each key, use {@link #keySet}.
       */
      @Override
      public ImmutableMultiset<K> keys() {
        return (ImmutableMultiset<K>) super.keys();
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 28.1K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/suggest/index/SuggestIndexerTest.java

                    new String[] { SuggestConstants.DEFAULT_ROLE }, null, SuggestItem.Kind.QUERY);
    
            // Both Document and Query (simulated by setting both frequencies)
            String[][] readings3 = new String[1][];
            readings3[0] = new String[] { "both" };
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 28.6K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/ImmutableMultimap.java

          }
        };
      }
    
      /**
       * Returns an immutable multiset containing all the keys in this multimap, in the same order and
       * with the same frequencies as they appear in this multimap; to get only a single occurrence of
       * each key, use {@link #keySet}.
       */
      @Override
      public ImmutableMultiset<K> keys() {
        return (ImmutableMultiset<K>) super.keys();
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 09 15:58:48 GMT 2025
    - 27.1K bytes
    - Click Count (0)
  10. doc/go_spec.html

    vowels := [128]bool{'a': true, 'e': true, 'i': true, 'o': true, 'u': true, 'y': true}
    
    // the array [10]float32{-1, 0, 0, 0, -0.1, -0.1, 0, 0, 0, -1}
    filter := [10]float32{-1, 4: -0.1, -0.1, 9: -1}
    
    // frequencies in Hz for equal-tempered scale (A4 = 440Hz)
    noteFrequency := map[string]float32{
    	"C0": 16.35, "D0": 18.35, "E0": 20.60, "F0": 21.83,
    	"G0": 24.50, "A0": 27.50, "B0": 30.87,
    }
    </pre>
    
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Apr 01 23:39:18 GMT 2026
    - 287.8K bytes
    - Click Count (1)
Back to Top