Class MetropolisHastings

    • Method Detail

      • isProposalAccepted

        protected boolean isProposalAccepted​(Vector x,
                                             Vector y)
        Description copied from class: AbstractMetropolis
        Decides whether the given proposed state should be accepted, or whether the system should remain in it's current state.
        Specified by:
        isProposalAccepted in class AbstractMetropolis
        Parameters:
        x - the current state of the system
        y - the proposed next state of the system
        Returns:
        whether the system should accept the proposed next state