Interface DissimilarityCalculator

    • Method Detail

      • create

        default DissimilarityCalculator create​(DFEntity targetEntity,
                                               chemaxon.struc.Molecule query,
                                               chemaxon.sss.search.JChemSearchOptions options,
                                               chemaxon.standardizer.Standardizer standardizer)
        Creates an instance of DissimilarityCalculator for given targetEntity type.
        Parameters:
        targetEntity - target entity - JChem Base, JPC, ...
        query - query molecule - stored for later calculation with target molecule
        options - JChem search options
        standardizer - standardizer, can be null
        Returns:
        instance of DissimilarityCalculator or null if calculator does not fit the targetEntity type
      • calculateDissimilarity

        float calculateDissimilarity​(chemaxon.struc.Molecule target)
                              throws chemaxon.descriptors.MDGeneratorException
        Calculates dissimilarity score between the previously set query and the provided target molecule.
        Parameters:
        target - Molecule to compare with query
        Returns:
        dissimilarity between query and target
        Throws:
        chemaxon.descriptors.MDGeneratorException - if failed to generate descriptor.