Class FundamentalDiagramImpl

    • Constructor Detail

      • FundamentalDiagramImpl

        public FundamentalDiagramImpl​(FundamentalDiagramImpl fundamentalDiagramImpl)
        Copy Constructor
        Parameters:
        fundamentalDiagramImpl - to copy
    • Method Detail

      • relaxedHashCode

        public int relaxedHashCode​(int scale)
        A fundamental diagram is based on a limited number of double variables to define it. In case we want to use the same FD for extremely similar variables we can use this relaxed hash code that ensures that for the given precision level identical hashes are created even if the underlying floating point variables differ beyond this precision.
        Specified by:
        relaxedHashCode in interface FundamentalDiagram
        Parameters:
        scale - indicating how many decimals to consider, e.g., 2 considers 2 decimals for precision
        Returns:
        created relaxed hash code