Class SimilarityCache

    • Constructor Detail

      • SimilarityCache

        public SimilarityCache​(WriteableObjectPool pool,
                               String pathCache)
        This constructor creates a new SimilarityCacheMatrix for a given CaseBase, calculates all similarities and stores them under the given path.
        Parameters:
        pool - the relevant CaseBase for the SimCache.
        pathCache - a Path to search for an existing simCache or to store a new simCache. Should not be null.
      • SimilarityCache

        public SimilarityCache​(WriteableObjectPool pool,
                               SimilarityCacheMatrix matrix)
        This constructor creates a new SimilarityCache for a given CaseBase and SimilarityCacheMatrix. The Matrix will not be calculated and stored in a file.
        Parameters:
        pool - the relevant CaseBase for the SimCache.
        matrix - a existing SimilarityCacheMatrix for the given CaseBase.